public abstract class AbstractACLTemplate extends Object implements org.apache.jackrabbit.api.security.JackrabbitAccessControlList, AccessControlConstants
AbstractACLTemplate...| Modifier and Type | Field and Description |
|---|---|
protected String |
path
Path of the node this ACL template has been created for.
|
protected ValueFactory |
valueFactory
The value factory
|
N_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| Modifier | Constructor and Description |
|---|---|
protected |
AbstractACLTemplate(String path,
ValueFactory valueFactory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAccessControlEntry(Principal principal,
Privilege[] privileges) |
boolean |
addEntry(Principal principal,
Privilege[] privileges,
boolean isAllow) |
boolean |
addEntry(Principal principal,
Privilege[] privileges,
boolean isAllow,
Map<String,Value> restrictions,
Map<String,Value[]> mvRestrictions) |
protected abstract void |
checkValidEntry(Principal principal,
Privilege[] privileges,
boolean isAllow,
Map<String,Value> restrictions)
Validates the given parameters to create a new ACE and throws an
AccessControlException if any of them is invalid. |
AccessControlEntry[] |
getAccessControlEntries() |
protected abstract List<AccessControlEntry> |
getEntries()
Return the list of entries, if they are held in an orderable list.
|
String |
getPath() |
boolean |
isEmpty() |
void |
orderBefore(AccessControlEntry srcEntry,
AccessControlEntry destEntry) |
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddEntry, getRestrictionNames, getRestrictionType, isMultiValueRestrictionremoveAccessControlEntryprotected final String path
protected final ValueFactory valueFactory
protected AbstractACLTemplate(String path, ValueFactory valueFactory)
protected abstract void checkValidEntry(Principal principal, Privilege[] privileges, boolean isAllow, Map<String,Value> restrictions) throws AccessControlException
AccessControlException if any of them is invalid. Otherwise
this method returns silently.principal - The principal to create the ACE for.privileges - The privileges to be granted/denied by the ACE.isAllow - Defines if the privileges are allowed or denied.restrictions - The additional restrictions.AccessControlException - If any of the given parameters is invalid.protected abstract List<AccessControlEntry> getEntries()
orderBefore(AccessControlEntry, AccessControlEntry)public String getPath()
getPath in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlPolicyJackrabbitAccessControlPolicy.getPath()public boolean addEntry(Principal principal, Privilege[] privileges, boolean isAllow) throws AccessControlException, RepositoryException
addEntry in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlListAccessControlExceptionRepositoryExceptionJackrabbitAccessControlList.addEntry(Principal, Privilege[], boolean)public boolean addEntry(Principal principal, Privilege[] privileges, boolean isAllow, Map<String,Value> restrictions, Map<String,Value[]> mvRestrictions) throws AccessControlException, RepositoryException
addEntry in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlListAccessControlExceptionRepositoryExceptionJackrabbitAccessControlList.addEntry(Principal, Privilege[], boolean, Map, Map)public int size()
size in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlListJackrabbitAccessControlList.size()public boolean isEmpty()
isEmpty in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlListJackrabbitAccessControlList.isEmpty()public void orderBefore(AccessControlEntry srcEntry, AccessControlEntry destEntry) throws AccessControlException, UnsupportedRepositoryOperationException, RepositoryException
orderBefore in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlListAccessControlExceptionUnsupportedRepositoryOperationExceptionRepositoryExceptionJackrabbitAccessControlList.orderBefore(javax.jcr.security.AccessControlEntry, javax.jcr.security.AccessControlEntry)public AccessControlEntry[] getAccessControlEntries() throws RepositoryException
getAccessControlEntries in interface AccessControlListRepositoryExceptionAccessControlList.getAccessControlEntries()public boolean addAccessControlEntry(Principal principal, Privilege[] privileges) throws AccessControlException, RepositoryException
addAccessControlEntry in interface AccessControlListAccessControlExceptionRepositoryExceptionAccessControlList.addAccessControlEntry(java.security.Principal , javax.jcr.security.Privilege[])Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.