org.pentaho.di.ui.repository
Class RepositorySecurityUI

java.lang.Object
  extended by org.pentaho.di.ui.repository.RepositorySecurityUI

public class RepositorySecurityUI
extends Object


Constructor Summary
RepositorySecurityUI()
           
 
Method Summary
static String getVersionComment(Shell shell, Repository repository, String operationDescription)
           
static boolean showVersionCommentMandatoryDialog(Shell shell)
           
static boolean verifyOperations(Shell shell, Repository repository, RepositoryOperation... operations)
          Verify a repository operation, show an error dialog if needed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositorySecurityUI

public RepositorySecurityUI()
Method Detail

verifyOperations

public static boolean verifyOperations(Shell shell,
                                       Repository repository,
                                       RepositoryOperation... operations)
Verify a repository operation, show an error dialog if needed.

Parameters:
repositoryMeta - The repository meta object
userinfo - The user information
operations - 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(Shell shell,
                                       Repository repository,
                                       String operationDescription)

showVersionCommentMandatoryDialog

public static boolean showVersionCommentMandatoryDialog(Shell shell)
Parameters:
shell - the parent shell.
Returns:
true if we need to retry, false if we need to cancel the operation.