public abstract class AbstractAccessControlManager extends Object implements JackrabbitAccessControlManager, AccessControlConstants
JackrabbitAccessControlManager interface.
This implementation covers both editing access control content by path and
by Principal resulting both in the same content structure.AC_NODETYPE_NAMES, ACE_PROPERTY_NAMES, MIX_REP_ACCESS_CONTROLLABLE, MIX_REP_REPO_ACCESS_CONTROLLABLE, NT_REP_ACE, NT_REP_ACL, NT_REP_DENY_ACE, NT_REP_GRANT_ACE, NT_REP_POLICY, NT_REP_RESTRICTIONS, PARAM_RESTRICTION_PROVIDER, POLICY_NODE_NAMES, REP_GLOB, REP_ITEM_NAMES, REP_NODE_PATH, REP_NT_NAMES, REP_POLICY, REP_PREFIXES, REP_PRINCIPAL_NAME, REP_PRIVILEGES, REP_REPO_POLICY, REP_RESTRICTIONS| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAccessControlManager(org.apache.jackrabbit.oak.api.Root root,
org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper,
SecurityProvider securityProvider) |
| Modifier and Type | Method and Description |
|---|---|
protected AuthorizationConfiguration |
getConfig() |
protected org.apache.jackrabbit.oak.api.Root |
getLatestRoot() |
protected org.apache.jackrabbit.oak.namepath.NamePathMapper |
getNamePathMapper() |
protected String |
getOakPath(String jcrPath) |
protected PermissionProvider |
getPermissionProvider() |
protected PrivilegeManager |
getPrivilegeManager() |
Privilege[] |
getPrivileges(String absPath) |
Privilege[] |
getPrivileges(String absPath,
Set<Principal> principals) |
protected org.apache.jackrabbit.oak.api.Root |
getRoot() |
Privilege[] |
getSupportedPrivileges(String absPath) |
protected org.apache.jackrabbit.oak.api.Tree |
getTree(String oakPath,
long permissions,
boolean checkAcContent) |
boolean |
hasPrivileges(String absPath,
Privilege[] privileges) |
boolean |
hasPrivileges(String absPath,
Set<Principal> principals,
Privilege[] privileges) |
Privilege |
privilegeFromName(String privilegeName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetApplicablePolicies, getEffectivePolicies, getPoliciesgetApplicablePolicies, getEffectivePolicies, getPolicies, removePolicy, setPolicyprotected AbstractAccessControlManager(@Nonnull org.apache.jackrabbit.oak.api.Root root, @Nonnull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper, @Nonnull SecurityProvider securityProvider)
@Nonnull public Privilege[] getSupportedPrivileges(@Nullable String absPath) throws RepositoryException
getSupportedPrivileges in interface AccessControlManagerRepositoryException@Nonnull public Privilege privilegeFromName(@Nonnull String privilegeName) throws RepositoryException
privilegeFromName in interface AccessControlManagerRepositoryExceptionpublic boolean hasPrivileges(@Nullable String absPath, @Nullable Privilege[] privileges) throws RepositoryException
hasPrivileges in interface AccessControlManagerRepositoryException@Nonnull public Privilege[] getPrivileges(@Nullable String absPath) throws RepositoryException
getPrivileges in interface AccessControlManagerRepositoryExceptionpublic boolean hasPrivileges(@Nullable String absPath, @Nonnull Set<Principal> principals, @Nullable Privilege[] privileges) throws RepositoryException
hasPrivileges in interface JackrabbitAccessControlManagerRepositoryExceptionpublic Privilege[] getPrivileges(@Nullable String absPath, @Nonnull Set<Principal> principals) throws RepositoryException
getPrivileges in interface JackrabbitAccessControlManagerRepositoryException@Nonnull protected AuthorizationConfiguration getConfig()
@Nonnull protected org.apache.jackrabbit.oak.api.Root getRoot()
@Nonnull protected org.apache.jackrabbit.oak.api.Root getLatestRoot()
@Nonnull protected org.apache.jackrabbit.oak.namepath.NamePathMapper getNamePathMapper()
@Nonnull protected PrivilegeManager getPrivilegeManager()
@CheckForNull protected String getOakPath(@Nullable String jcrPath) throws RepositoryException
RepositoryException@Nonnull protected org.apache.jackrabbit.oak.api.Tree getTree(@Nullable String oakPath, long permissions, boolean checkAcContent) throws RepositoryException
RepositoryException@Nonnull protected PermissionProvider getPermissionProvider()
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.