Class RepositorySecurityUI

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

public class RepositorySecurityUI extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 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.