org.apache.jackrabbit.core.security
Interface JackrabbitAccessControlManager
- All Superinterfaces:
- AccessControlManager
- All Known Implementing Classes:
- AbstractAccessControlManager, DefaultAccessManager, SimpleAccessManager, SimpleAccessManager
public interface JackrabbitAccessControlManager
- extends AccessControlManager
JackrabbitAccessControlManager
...
getApplicablePolicies
JackrabbitAccessControlPolicy[] getApplicablePolicies(Principal principal)
throws AccessDeniedException,
AccessControlException,
UnsupportedRepositoryOperationException,
RepositoryException
- Returns the editable policies for the specified
principal
.
- Parameters:
principal
- A principal known to the editing session.
- Returns:
- array of policies for the specified
principal
. Note
that the policy object returned must reveal the path of the node where
they can be applied later on using AccessControlManager.setPolicy(String, org.apache.jackrabbit.api.jsr283.security.AccessControlPolicy)
.
- Throws:
AccessDeniedException
- if the session lacks
MODIFY_ACCESS_CONTROL
privilege.
AccessControlException
- if the specified principal does not exist
or if another access control related exception occurs.
UnsupportedRepositoryOperationException
- if editing access control
policies is not supported.
RepositoryException
- if another error occurs.- See Also:
JackrabbitAccessControlPolicy.getPath()
Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.