public class ACLProvider extends AbstractAccessControlProvider implements AccessControlConstants
ACLProvider...observationMgr, PARAM_OMIT_DEFAULT_PERMISSIONS, privilegeManager, sessionN_ACCESSCONTROL, N_POLICY, N_REPO_POLICY, NT_REP_ACCESS_CONTROL, NT_REP_ACCESS_CONTROLLABLE, NT_REP_ACE, NT_REP_ACL, NT_REP_DENY_ACE, NT_REP_GRANT_ACE, NT_REP_PRINCIPAL_ACCESS_CONTROL, NT_REP_REPO_ACCESS_CONTROLLABLE, P_GLOB, P_PRINCIPAL_NAME, P_PRIVILEGES| Constructor and Description |
|---|
ACLProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAccessRoot(Set<Principal> principals)
Returns
true if the given set of principals can access the
root node of the workspace this provider has been built for;
false otherwise. |
void |
close()
Closes this provider when it is no longer used by the respective
workspace and release resources bound by this provider.
|
CompiledPermissions |
compilePermissions(Set<Principal> principals)
Compiles the effective policy for the specified set of
Principals. |
AccessControlEditor |
getEditor(javax.jcr.Session editingSession)
Returns an
AccessControlEditor for the given Session object
or null if the implementation does not support editing
of access control policies. |
javax.jcr.security.AccessControlPolicy[] |
getEffectivePolicies(Path absPath,
CompiledPermissions permissions)
Returns the effective policies for the node at the given absPath.
|
javax.jcr.security.AccessControlPolicy[] |
getEffectivePolicies(Set<Principal> principals,
CompiledPermissions permissions)
Returns the effective policies for the given principals.
|
void |
init(javax.jcr.Session systemSession,
Map configuration)
Tests if the given
systemSession is a SessionImpl and
retrieves the observation manager. |
checkInitialized, getAdminPermissions, getPrivilegeManagerImpl, getReadOnlyPermissions, isAcItem, isAcItem, isAdminOrSystem, isLive, isReadOnlypublic void init(javax.jcr.Session systemSession,
Map configuration)
throws javax.jcr.RepositoryException
AbstractAccessControlProvidersystemSession is a SessionImpl and
retrieves the observation manager. The it sets the internal 'initialized'
field to true.init in interface AccessControlProviderinit in class AbstractAccessControlProvidersystemSession - System session.configuration - Configuration used to initialize this provider.javax.jcr.RepositoryException - If the specified session is not a
SessionImpl or if retrieving the observation manager fails.AccessControlProvider.init(javax.jcr.Session, java.util.Map)public void close()
AccessControlProviderclose in interface AccessControlProviderclose in class AbstractAccessControlProviderAccessControlProvider.close()public javax.jcr.security.AccessControlPolicy[] getEffectivePolicies(Path absPath, CompiledPermissions permissions) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
AccessControlProvidergetEffectivePolicies in interface AccessControlProviderabsPath - an absolute path.permissions - The effective permissions of the editing
sessions that attempts to view the effective policies.absPath or
an empty array if the implementation cannot determine the effective
policy at the given path.javax.jcr.ItemNotFoundException - If no Node with the specified
absPath exists.javax.jcr.RepositoryException - If another error occurs.AccessControlProvider.getEffectivePolicies(org.apache.jackrabbit.spi.Path,org.apache.jackrabbit.core.security.authorization.CompiledPermissions)public javax.jcr.security.AccessControlPolicy[] getEffectivePolicies(Set<Principal> principals, CompiledPermissions permissions) throws javax.jcr.RepositoryException
AccessControlProvidergetEffectivePolicies in interface AccessControlProviderprincipals - A set of principal.permissions - The effective permissions of the editing
sessions that attempts to view the effective policies. @return The effective policies that are in effect for the given
principal or an empty array.javax.jcr.RepositoryException - If error occurs.AccessControlProvider.getEffectivePolicies(java.util.Set, CompiledPermissions)public AccessControlEditor getEditor(javax.jcr.Session editingSession)
AccessControlProviderAccessControlEditor for the given Session object
or null if the implementation does not support editing
of access control policies.getEditor in interface AccessControlProvidereditingSession - The editing session.null.AccessControlProvider.getEditor(Session)public CompiledPermissions compilePermissions(Set<Principal> principals) throws javax.jcr.RepositoryException
AccessControlProviderPrincipals.compilePermissions in interface AccessControlProviderprincipals - Set of principals to compile the permissions for. If
the order of evaluating permissions for principals is meaningful, the
caller should pass a Set that respects the order of insertion.javax.jcr.RepositoryException - If an error occurs.AccessControlProvider.compilePermissions(Set)public boolean canAccessRoot(Set<Principal> principals) throws javax.jcr.RepositoryException
AccessControlProvidertrue if the given set of principals can access the
root node of the workspace this provider has been built for;
false otherwise.canAccessRoot in interface AccessControlProviderprincipals - Set of principals to be tested for being allowed to
access the root node.true if the given set of principals can access the
root node of the workspace this provider has been built for;
false otherwise.javax.jcr.RepositoryException - If an error occurs.AccessControlProvider.canAccessRoot(Set)Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.