Class RepositorySecurityUI


  • public class RepositorySecurityUI
    extends Object
    • 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.
    • Constructor Detail

      • RepositorySecurityUI

        public RepositorySecurityUI()
    • 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 dialog
        repository - The repository meta object
        displayError - If true, then display an error dialog if there is a security error
        operations - 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 dialog
        repository - The repository meta object
        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​(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.