public interface AuthorizationProvider
Modifier and Type | Method and Description |
---|---|
boolean |
hasPermission(ExecutionContext context,
String repositoryName,
String repositorySourceName,
String workspaceName,
Path absPath,
String... actions)
Determine if the supplied execution context has permission for all of the named actions in the named workspace.
|
boolean hasPermission(ExecutionContext context, String repositoryName, String repositorySourceName, String workspaceName, Path absPath, String... actions)
context
- the context in which the subject is performing the actions on the supplied workspacerepositoryName
- the name of the repository containing the workspace contentrepositorySourceName
- This is no longer used and will always be the same as the repositoryNameworkspaceName
- the name of the workspace in which the path existsabsPath
- the absolute path on which the actions are occurring, or null if the permissions are at the workspace-levelactions
- the list of actions
to checkCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.