Package org.pentaho.di.ui.repository
Class RepositorySecurityUI
java.lang.Object
org.pentaho.di.ui.repository.RepositorySecurityUI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetVersionComment(org.eclipse.swt.widgets.Shell shell, org.pentaho.di.repository.Repository repository, String operationDescription, String fullPath, boolean forceEntry) static booleanshowVersionCommentMandatoryDialog(org.eclipse.swt.widgets.Shell shell) static booleanverifyOperations(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 booleanverifyOperations(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.
-
Constructor Details
-
RepositorySecurityUI
public RepositorySecurityUI()
-
-
Method Details
-
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
-
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.
-