public class KettleFileRepositorySecurityProvider extends Object implements RepositorySecurityProvider
ADMINISTER_SECURITY_ACTION, ADMINISTER_SECURITY_ROLE, CREATE_CONTENT_ACTION, CREATE_CONTENT_ROLE, EXECUTE_CONTENT_ACTION, NAMESPACE, READ_CONTENT_ACTION, READ_CONTENT_ROLE, SCHEDULE_CONTENT_ACTION| Constructor and Description |
|---|
KettleFileRepositorySecurityProvider(RepositoryMeta repositoryMeta) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsVersionComments(String fullPath) |
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() |
boolean |
isVersioningEnabled(String fullPath)
Determines whether versioning should be enabled in the UI for the given fully qualified file/path.
|
void |
validateAction(RepositoryOperation... operations)
Validates the supplied operation.
|
public KettleFileRepositorySecurityProvider(RepositoryMeta repositoryMeta)
public UserInfo getUserInfo()
getUserInfo in interface RepositorySecurityProviderpublic RepositoryMeta getRepositoryMeta()
public void validateAction(RepositoryOperation... operations) throws KettleException, KettleSecurityException
RepositorySecurityProvidervalidateAction in interface RepositorySecurityProviderKettleSecurityException - in case the provided user is not know or the password is incorrectKettleException - in case the action couldn't be validated because of an unexpected problem.public boolean isReadOnly()
isReadOnly in interface RepositorySecurityProviderpublic boolean isLockingPossible()
isLockingPossible in interface RepositorySecurityProviderpublic boolean allowsVersionComments(String fullPath)
allowsVersionComments in interface RepositorySecurityProviderpublic boolean isVersionCommentMandatory()
isVersionCommentMandatory in interface RepositorySecurityProviderpublic List<String> getAllRoles() throws KettleException
RepositorySecurityProvidergetAllRoles in interface RepositorySecurityProviderKettleSecurityException - in case anything went wrongKettleExceptionpublic List<String> getAllUsers() throws KettleException
RepositorySecurityProvidergetAllUsers in interface RepositorySecurityProviderKettleSecurityException - in case anything went wrongKettleExceptionpublic String[] getUserLogins() throws KettleException
getUserLogins in interface RepositorySecurityProviderKettleExceptionpublic boolean isVersioningEnabled(String fullPath)
RepositorySecurityProviderisVersioningEnabled in interface RepositorySecurityProviderCopyright © 2020 Hitachi Vantara. All rights reserved.