public class ImmutableACL extends AbstractAccessControlList
JackrabbitAccessControlList interface that only
allows for reading. The write methods throw an AccessControlException.| Constructor and Description |
|---|
ImmutableACL(@Nullable String oakPath,
@NotNull List<? extends JackrabbitAccessControlEntry> entries,
@NotNull RestrictionProvider restrictionProvider,
@NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper)
Construct a new
UnmodifiableAccessControlList |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addEntry(Principal principal,
Privilege[] privileges,
boolean isAllow,
Map<String,Value> restrictions) |
boolean |
addEntry(Principal principal,
Privilege[] privileges,
boolean isAllow,
Map<String,Value> restrictions,
Map<String,Value[]> mvRestrictions) |
boolean |
equals(Object obj) |
@NotNull List<JackrabbitAccessControlEntry> |
getEntries() |
@NotNull RestrictionProvider |
getRestrictionProvider() |
int |
hashCode() |
void |
orderBefore(AccessControlEntry srcEntry,
AccessControlEntry destEntry) |
void |
removeAccessControlEntry(AccessControlEntry ace) |
addAccessControlEntry, addEntry, getAccessControlEntries, getNamePathMapper, getOakPath, getPath, getRestrictionNames, getRestrictionType, isEmpty, isMultiValueRestriction, sizepublic ImmutableACL(@Nullable
@Nullable String oakPath,
@NotNull
@NotNull List<? extends JackrabbitAccessControlEntry> entries,
@NotNull
@NotNull RestrictionProvider restrictionProvider,
@NotNull
@NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper)
UnmodifiableAccessControlListoakPath - The Oak path of this policy or null.entries - The access control entries contained in this policy.restrictionProvider - The restriction provider.namePathMapper - The NamePathMapper used for conversion.public void removeAccessControlEntry(AccessControlEntry ace) throws AccessControlException
AccessControlExceptionpublic boolean addEntry(Principal principal, Privilege[] privileges, boolean isAllow, Map<String,Value> restrictions) throws AccessControlException
addEntry in interface JackrabbitAccessControlListaddEntry in class AbstractAccessControlListAccessControlExceptionpublic boolean addEntry(Principal principal, Privilege[] privileges, boolean isAllow, Map<String,Value> restrictions, Map<String,Value[]> mvRestrictions) throws AccessControlException
AccessControlExceptionpublic void orderBefore(AccessControlEntry srcEntry, AccessControlEntry destEntry) throws AccessControlException
AccessControlException@NotNull public @NotNull List<JackrabbitAccessControlEntry> getEntries()
getEntries in class AbstractAccessControlList@NotNull public @NotNull RestrictionProvider getRestrictionProvider()
getRestrictionProvider in class AbstractAccessControlListCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.