Class AbstractACLTemplate
- java.lang.Object
- 
- org.apache.jackrabbit.core.security.authorization.AbstractACLTemplate
 
- 
- All Implemented Interfaces:
- AccessControlList,- AccessControlPolicy,- JackrabbitAccessControlList,- JackrabbitAccessControlPolicy,- AccessControlConstants
 
 public abstract class AbstractACLTemplate extends Object implements JackrabbitAccessControlList, AccessControlConstants AbstractACLTemplate...
- 
- 
Field SummaryFields Modifier and Type Field Description protected StringpathPath of the node this ACL template has been created for.protected ValueFactoryvalueFactoryThe value factory- 
Fields inherited from interface org.apache.jackrabbit.core.security.authorization.AccessControlConstantsN_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 SummaryConstructors Modifier Constructor Description protectedAbstractACLTemplate(String path, ValueFactory valueFactory)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanaddAccessControlEntry(Principal principal, Privilege[] privileges)booleanaddEntry(Principal principal, Privilege[] privileges, boolean isAllow)booleanaddEntry(Principal principal, Privilege[] privileges, boolean isAllow, Map<String,Value> restrictions, Map<String,Value[]> mvRestrictions)protected abstract voidcheckValidEntry(Principal principal, Privilege[] privileges, boolean isAllow, Map<String,Value> restrictions)Validates the given parameters to create a new ACE and throws anAccessControlExceptionif 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.StringgetPath()booleanisEmpty()voidorderBefore(AccessControlEntry srcEntry, AccessControlEntry destEntry)intsize()- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface javax.jcr.security.AccessControlListremoveAccessControlEntry
 - 
Methods inherited from interface org.apache.jackrabbit.api.security.JackrabbitAccessControlListaddEntry, getRestrictionNames, getRestrictionType, isMultiValueRestriction
 
- 
 
- 
- 
- 
Field Detail- 
pathprotected final String path Path of the node this ACL template has been created for.
 - 
valueFactoryprotected final ValueFactory valueFactory The value factory
 
- 
 - 
Constructor Detail- 
AbstractACLTemplateprotected AbstractACLTemplate(String path, ValueFactory valueFactory) 
 
- 
 - 
Method Detail- 
checkValidEntryprotected abstract void checkValidEntry(Principal principal, Privilege[] privileges, boolean isAllow, Map<String,Value> restrictions) throws AccessControlException Validates the given parameters to create a new ACE and throws anAccessControlExceptionif any of them is invalid. Otherwise this method returns silently.- Parameters:
- 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.
- Throws:
- AccessControlException- If any of the given parameters is invalid.
 
 - 
getEntriesprotected abstract List<AccessControlEntry> getEntries() Return the list of entries, if they are held in an orderable list.- Returns:
- the list of entries.
- See Also:
- orderBefore(AccessControlEntry, AccessControlEntry)
 
 - 
getPathpublic String getPath() - Specified by:
- getPathin interface- JackrabbitAccessControlPolicy
- See Also:
- JackrabbitAccessControlPolicy.getPath()
 
 - 
addEntrypublic boolean addEntry(Principal principal, Privilege[] privileges, boolean isAllow) throws AccessControlException, RepositoryException - Specified by:
- addEntryin interface- JackrabbitAccessControlList
- Throws:
- AccessControlException
- RepositoryException
- See Also:
- JackrabbitAccessControlList.addEntry(Principal, Privilege[], boolean)
 
 - 
addEntrypublic boolean addEntry(Principal principal, Privilege[] privileges, boolean isAllow, Map<String,Value> restrictions, Map<String,Value[]> mvRestrictions) throws AccessControlException, RepositoryException - Specified by:
- addEntryin interface- JackrabbitAccessControlList
- Throws:
- AccessControlException
- RepositoryException
- See Also:
- JackrabbitAccessControlList.addEntry(Principal, Privilege[], boolean, Map, Map)
 
 - 
sizepublic int size() - Specified by:
- sizein interface- JackrabbitAccessControlList
- See Also:
- JackrabbitAccessControlList.size()
 
 - 
isEmptypublic boolean isEmpty() - Specified by:
- isEmptyin interface- JackrabbitAccessControlList
- See Also:
- JackrabbitAccessControlList.isEmpty()
 
 - 
orderBeforepublic void orderBefore(AccessControlEntry srcEntry, AccessControlEntry destEntry) throws AccessControlException, UnsupportedRepositoryOperationException, RepositoryException 
 - 
getAccessControlEntriespublic AccessControlEntry[] getAccessControlEntries() throws RepositoryException - Specified by:
- getAccessControlEntriesin interface- AccessControlList
- Throws:
- RepositoryException
- See Also:
- AccessControlList.getAccessControlEntries()
 
 - 
addAccessControlEntrypublic boolean addAccessControlEntry(Principal principal, Privilege[] privileges) throws AccessControlException, RepositoryException - Specified by:
- addAccessControlEntryin interface- AccessControlList
- Throws:
- AccessControlException
- RepositoryException
- See Also:
- AccessControlList.addAccessControlEntry(java.security.Principal , javax.jcr.security.Privilege[])
 
 
- 
 
-