Class KettleFileRepositorySecurityProvider

    • Constructor Detail

      • KettleFileRepositorySecurityProvider

        public KettleFileRepositorySecurityProvider​(RepositoryMeta repositoryMeta)
    • Method Detail

      • validateAction

        public void validateAction​(RepositoryOperation... operations)
                            throws org.pentaho.di.core.exception.KettleException,
                                   org.pentaho.di.core.exception.KettleSecurityException
        Description copied from interface: RepositorySecurityProvider
        Validates the supplied operation.
        Specified by:
        validateAction in interface RepositorySecurityProvider
        Throws:
        org.pentaho.di.core.exception.KettleSecurityException - in case the provided user is not know or the password is incorrect
        org.pentaho.di.core.exception.KettleException - in case the action couldn't be validated because of an unexpected problem.
      • isLockingPossible

        public boolean isLockingPossible()
        Specified by:
        isLockingPossible in interface RepositorySecurityProvider
        Returns:
        true if this repository supports file locking and if the user is allowed to lock a file
      • getAllRoles

        public List<String> getAllRoles()
                                 throws org.pentaho.di.core.exception.KettleException
        Description copied from interface: RepositorySecurityProvider
        Retrieves all roles in the system
        Specified by:
        getAllRoles in interface RepositorySecurityProvider
        Returns:
        list of role
        Throws:
        org.pentaho.di.core.exception.KettleSecurityException - in case anything went wrong
        org.pentaho.di.core.exception.KettleException
      • getAllUsers

        public List<String> getAllUsers()
                                 throws org.pentaho.di.core.exception.KettleException
        Description copied from interface: RepositorySecurityProvider
        Retrieves all users in the system
        Specified by:
        getAllUsers in interface RepositorySecurityProvider
        Returns:
        list of username
        Throws:
        org.pentaho.di.core.exception.KettleSecurityException - in case anything went wrong
        org.pentaho.di.core.exception.KettleException
      • getUserLogins

        public String[] getUserLogins()
                               throws org.pentaho.di.core.exception.KettleException
        Specified by:
        getUserLogins in interface RepositorySecurityProvider
        Throws:
        org.pentaho.di.core.exception.KettleException
      • isVersioningEnabled

        public boolean isVersioningEnabled​(String fullPath)
        Description copied from interface: RepositorySecurityProvider
        Determines whether versioning should be enabled in the UI for the given fully qualified file/path. If set to false, the repository may still support versioning, but the versioning will not be apparent in the UI.
        Specified by:
        isVersioningEnabled in interface RepositorySecurityProvider
        Returns:
        true if version are enabled, false if they if are not