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(@NotNull org.apache.jackrabbit.oak.api.Root root,
@NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper,
@NotNull SecurityProvider securityProvider) |
| Modifier and Type | Method and Description |
|---|---|
protected @NotNull AuthorizationConfiguration |
getConfig() |
protected @NotNull org.apache.jackrabbit.oak.api.Root |
getLatestRoot() |
protected @NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper |
getNamePathMapper() |
protected @Nullable String |
getOakPath(@Nullable String jcrPath) |
protected @NotNull PermissionProvider |
getPermissionProvider() |
protected @NotNull PrivilegeManager |
getPrivilegeManager() |
@NotNull Privilege[] |
getPrivileges(@Nullable String absPath) |
Privilege[] |
getPrivileges(@Nullable String absPath,
@NotNull Set<Principal> principals) |
protected @NotNull org.apache.jackrabbit.oak.api.Root |
getRoot() |
@NotNull Privilege[] |
getSupportedPrivileges(@Nullable String absPath) |
protected @NotNull org.apache.jackrabbit.oak.api.Tree |
getTree(@Nullable String oakPath,
long permissions,
boolean checkAcContent) |
boolean |
hasPrivileges(@Nullable String absPath,
@Nullable Privilege[] privileges) |
boolean |
hasPrivileges(@Nullable String absPath,
@NotNull Set<Principal> principals,
@Nullable Privilege[] privileges) |
@NotNull Privilege |
privilegeFromName(@NotNull String privilegeName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetApplicablePolicies, getEffectivePolicies, getPoliciesgetApplicablePolicies, getEffectivePolicies, getPolicies, removePolicy, setPolicyprotected AbstractAccessControlManager(@NotNull
@NotNull org.apache.jackrabbit.oak.api.Root root,
@NotNull
@NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper,
@NotNull
@NotNull SecurityProvider securityProvider)
@NotNull public @NotNull Privilege[] getSupportedPrivileges(@Nullable @Nullable String absPath) throws RepositoryException
getSupportedPrivileges in interface AccessControlManagerRepositoryException@NotNull public @NotNull Privilege privilegeFromName(@NotNull @NotNull String privilegeName) throws RepositoryException
privilegeFromName in interface AccessControlManagerRepositoryExceptionpublic boolean hasPrivileges(@Nullable
@Nullable String absPath,
@Nullable
@Nullable Privilege[] privileges)
throws RepositoryException
hasPrivileges in interface AccessControlManagerRepositoryException@NotNull public @NotNull Privilege[] getPrivileges(@Nullable @Nullable String absPath) throws RepositoryException
getPrivileges in interface AccessControlManagerRepositoryExceptionpublic boolean hasPrivileges(@Nullable
@Nullable String absPath,
@NotNull
@NotNull Set<Principal> principals,
@Nullable
@Nullable Privilege[] privileges)
throws RepositoryException
hasPrivileges in interface JackrabbitAccessControlManagerRepositoryExceptionpublic Privilege[] getPrivileges(@Nullable @Nullable String absPath, @NotNull @NotNull Set<Principal> principals) throws RepositoryException
getPrivileges in interface JackrabbitAccessControlManagerRepositoryException@NotNull protected @NotNull AuthorizationConfiguration getConfig()
@NotNull protected @NotNull org.apache.jackrabbit.oak.api.Root getRoot()
@NotNull protected @NotNull org.apache.jackrabbit.oak.api.Root getLatestRoot()
@NotNull protected @NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper getNamePathMapper()
@NotNull protected @NotNull PrivilegeManager getPrivilegeManager()
@Nullable protected @Nullable String getOakPath(@Nullable @Nullable String jcrPath) throws RepositoryException
RepositoryException@NotNull protected @NotNull org.apache.jackrabbit.oak.api.Tree getTree(@Nullable @Nullable String oakPath, long permissions, boolean checkAcContent) throws RepositoryException
RepositoryException@NotNull protected @NotNull PermissionProvider getPermissionProvider()
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.