org.modeshape.jcr.security
Interface AuthorizationProvider
public interface AuthorizationProvider
An interface that can authorize access to specific resources within repositories.
hasPermission
boolean hasPermission(ExecutionContext context,
String repositoryName,
String repositorySourceName,
String workspaceName,
Path path,
String... actions)
- Determine if the supplied execution context has permission for all of the named actions in the named workspace. If not all
actions are allowed, the method returns false.
- Parameters:
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 existspath
- the path on which the actions are occurringactions
- the list of actions
to check
- Returns:
- true if the subject has privilege to perform all of the named actions on the content at the supplied path in the
given workspace within the repository, or false otherwise
Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.