public class RepositorySecurityUI extends Object
Constructor and Description |
---|
RepositorySecurityUI() |
Modifier and Type | Method and Description |
---|---|
static String |
getVersionComment(org.eclipse.swt.widgets.Shell shell,
org.pentaho.di.repository.Repository repository,
String operationDescription) |
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.
|
public static boolean verifyOperations(org.eclipse.swt.widgets.Shell shell, org.pentaho.di.repository.Repository repository, boolean displayError, org.pentaho.di.repository.RepositoryOperation... operations)
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.public static boolean verifyOperations(org.eclipse.swt.widgets.Shell shell, org.pentaho.di.repository.Repository repository, org.pentaho.di.repository.RepositoryOperation... operations)
shell
- The parent frame to display error dialogrepository
- The repository meta objectoperations
- the operations you want to perform with the supplied user.public static String getVersionComment(org.eclipse.swt.widgets.Shell shell, org.pentaho.di.repository.Repository repository, String operationDescription)
public static boolean showVersionCommentMandatoryDialog(org.eclipse.swt.widgets.Shell shell)
shell
- the parent shell.