Class KettleFileRepositorySecurityProvider
java.lang.Object
org.pentaho.di.repository.filerep.KettleFileRepositorySecurityProvider
- All Implemented Interfaces:
IRepositoryService,RepositorySecurityProvider
public class KettleFileRepositorySecurityProvider
extends Object
implements RepositorySecurityProvider
-
Field Summary
Fields inherited from interface org.pentaho.di.repository.RepositorySecurityProvider
ADMINISTER_SECURITY_ACTION, ADMINISTER_SECURITY_ROLE, CREATE_CONTENT_ACTION, CREATE_CONTENT_ROLE, EXECUTE_CONTENT_ACTION, MODIFY_DATABASE_ACTION, NAMESPACE, READ_CONTENT_ACTION, READ_CONTENT_ROLE, SCHEDULE_CONTENT_ACTION, SCHEDULER_EXECUTE_ACTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanallowsVersionComments(String fullPath) Retrieves all roles in the systemRetrieves all users in the systemString[]booleanbooleanbooleanbooleanisVersioningEnabled(String fullPath) Determines whether versioning should be enabled in the UI for the given fully qualified file/path.voidvalidateAction(RepositoryOperation... operations) Validates the supplied operation.
-
Constructor Details
-
KettleFileRepositorySecurityProvider
-
-
Method Details
-
getUserInfo
- Specified by:
getUserInfoin interfaceRepositorySecurityProvider- Returns:
- the user information set on the security provider
-
getRepositoryMeta
-
validateAction
public void validateAction(RepositoryOperation... operations) throws org.pentaho.di.core.exception.KettleException, org.pentaho.di.core.exception.KettleSecurityException Description copied from interface:RepositorySecurityProviderValidates the supplied operation.- Specified by:
validateActionin interfaceRepositorySecurityProvider- Throws:
org.pentaho.di.core.exception.KettleSecurityException- in case the provided user is not know or the password is incorrectorg.pentaho.di.core.exception.KettleException- in case the action couldn't be validated because of an unexpected problem.
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin interfaceRepositorySecurityProvider- Returns:
- true if the repository or the user is read only
-
isLockingPossible
public boolean isLockingPossible()- Specified by:
isLockingPossiblein interfaceRepositorySecurityProvider- Returns:
- true if this repository supports file locking and if the user is allowed to lock a file
-
allowsVersionComments
- Specified by:
allowsVersionCommentsin interfaceRepositorySecurityProvider- Returns:
- true if the repository supports revisions AND if it is possible to give version comments
-
isVersionCommentMandatory
public boolean isVersionCommentMandatory()- Specified by:
isVersionCommentMandatoryin interfaceRepositorySecurityProvider- Returns:
- true if version comments are mandatory if allowed.
-
getAllRoles
Description copied from interface:RepositorySecurityProviderRetrieves all roles in the system- Specified by:
getAllRolesin interfaceRepositorySecurityProvider- Returns:
- list of role
- Throws:
org.pentaho.di.core.exception.KettleSecurityException- in case anything went wrongorg.pentaho.di.core.exception.KettleException
-
getAllUsers
Description copied from interface:RepositorySecurityProviderRetrieves all users in the system- Specified by:
getAllUsersin interfaceRepositorySecurityProvider- Returns:
- list of username
- Throws:
org.pentaho.di.core.exception.KettleSecurityException- in case anything went wrongorg.pentaho.di.core.exception.KettleException
-
getUserLogins
- Specified by:
getUserLoginsin interfaceRepositorySecurityProvider- Throws:
org.pentaho.di.core.exception.KettleException
-
isVersioningEnabled
Description copied from interface:RepositorySecurityProviderDetermines 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:
isVersioningEnabledin interfaceRepositorySecurityProvider- Returns:
- true if version are enabled, false if they if are not
-