org.pentaho.di.repository.filerep
Class KettleFileRepositorySecurityProvider

java.lang.Object
  extended by org.pentaho.di.repository.filerep.KettleFileRepositorySecurityProvider
All Implemented Interfaces:
IRepositoryService, RepositorySecurityProvider

public class KettleFileRepositorySecurityProvider
extends Object
implements RepositorySecurityProvider


Constructor Summary
KettleFileRepositorySecurityProvider(RepositoryMeta repositoryMeta)
           
 
Method Summary
 boolean allowsVersionComments()
           
 List<String> getAllRoles()
          Retrieves all roles in the system
 List<String> getAllUsers()
          Retrieves all users in the system
 RepositoryMeta getRepositoryMeta()
           
 UserInfo getUserInfo()
           
 String[] getUserLogins()
           
 boolean isLockingPossible()
           
 boolean isReadOnly()
           
 boolean isVersionCommentMandatory()
           
 void validateAction(RepositoryOperation... operations)
          Validates the supplied operation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KettleFileRepositorySecurityProvider

public KettleFileRepositorySecurityProvider(RepositoryMeta repositoryMeta)
Method Detail

getUserInfo

public UserInfo getUserInfo()
Specified by:
getUserInfo in interface RepositorySecurityProvider
Returns:
the user information set on the security provider

getRepositoryMeta

public RepositoryMeta getRepositoryMeta()

validateAction

public void validateAction(RepositoryOperation... operations)
                    throws KettleException,
                           KettleSecurityException
Description copied from interface: RepositorySecurityProvider
Validates the supplied operation.

Specified by:
validateAction in interface RepositorySecurityProvider
Throws:
KettleSecurityException - in case the provided user is not know or the password is incorrect
KettleException - in case the action couldn't be validated because of an unexpected problem.

isReadOnly

public boolean isReadOnly()
Specified by:
isReadOnly in interface RepositorySecurityProvider
Returns:
true if the repository or the user is read only

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

allowsVersionComments

public boolean allowsVersionComments()
Specified by:
allowsVersionComments in interface RepositorySecurityProvider
Returns:
true if the repository supports revisions AND if it is possible to give version comments

isVersionCommentMandatory

public boolean isVersionCommentMandatory()
Specified by:
isVersionCommentMandatory in interface RepositorySecurityProvider
Returns:
true if version comments are allowed and mandatory.

getAllRoles

public List<String> getAllRoles()
                         throws KettleException
Description copied from interface: RepositorySecurityProvider
Retrieves all roles in the system

Specified by:
getAllRoles in interface RepositorySecurityProvider
Returns:
list of role
Throws:
KettleSecurityException - in case anything went wrong
KettleException

getAllUsers

public List<String> getAllUsers()
                         throws KettleException
Description copied from interface: RepositorySecurityProvider
Retrieves all users in the system

Specified by:
getAllUsers in interface RepositorySecurityProvider
Returns:
list of username
Throws:
KettleSecurityException - in case anything went wrong
KettleException

getUserLogins

public String[] getUserLogins()
                       throws KettleException
Specified by:
getUserLogins in interface RepositorySecurityProvider
Throws:
KettleException