Package org.pentaho.di.ui.repository
Class RepositorySecurityUI
- java.lang.Object
-
- org.pentaho.di.ui.repository.RepositorySecurityUI
-
public class RepositorySecurityUI extends Object
-
-
Constructor Summary
Constructors Constructor Description RepositorySecurityUI()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getVersionComment(org.eclipse.swt.widgets.Shell shell, org.pentaho.di.repository.Repository repository, String operationDescription, String fullPath, boolean forceEntry)
static boolean
showVersionCommentMandatoryDialog(org.eclipse.swt.widgets.Shell shell)
static boolean
verifyOperations(org.eclipse.swt.widgets.Shell shell, org.pentaho.di.repository.Repository repository, boolean displayError, org.pentaho.di.repository.RepositoryOperation... operations)
Verify a repository operation, show an error dialog if needed.static boolean
verifyOperations(org.eclipse.swt.widgets.Shell shell, org.pentaho.di.repository.Repository repository, org.pentaho.di.repository.RepositoryOperation... operations)
Verify a repository operation, show an error dialog if there is a security error.
-
-
-
Method Detail
-
verifyOperations
public static boolean verifyOperations(org.eclipse.swt.widgets.Shell shell, org.pentaho.di.repository.Repository repository, boolean displayError, org.pentaho.di.repository.RepositoryOperation... operations)
Verify a repository operation, show an error dialog if needed.- Parameters:
shell
- The parent frame to display error dialogrepository
- The repository meta objectdisplayError
- If true, then display an error dialog if there is a security erroroperations
- the operations you want to perform with the supplied user.- Returns:
- true if there is an error, false if all is OK.
-
verifyOperations
public static boolean verifyOperations(org.eclipse.swt.widgets.Shell shell, org.pentaho.di.repository.Repository repository, org.pentaho.di.repository.RepositoryOperation... operations)
Verify a repository operation, show an error dialog if there is a security error.- Parameters:
shell
- The parent frame to display error dialogrepository
- The repository meta objectoperations
- the operations you want to perform with the supplied user.- Returns:
- true if there is an error, false if all is OK.
-
getVersionComment
public static String getVersionComment(org.eclipse.swt.widgets.Shell shell, org.pentaho.di.repository.Repository repository, String operationDescription, String fullPath, boolean forceEntry)
-
showVersionCommentMandatoryDialog
public static boolean showVersionCommentMandatoryDialog(org.eclipse.swt.widgets.Shell shell)
- Parameters:
shell
- the parent shell.- Returns:
- true if we need to retry, false if we need to cancel the operation.
-
-