Interface JackrabbitAccessControlEntry
-
- All Superinterfaces:
javax.jcr.security.AccessControlEntry
- All Known Subinterfaces:
PrincipalAccessControlList.Entry
@ProviderType public interface JackrabbitAccessControlEntry extends javax.jcr.security.AccessControlEntryJackrabbitAccessControlEntryis a Jackrabbit specific extension of theAccessControlEntryinterface. It represents an single entry of aJackrabbitAccessControlList.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable javax.jcr.ValuegetRestriction(@NotNull String restrictionName)Return the value of the restriction with the specified name ornullif no such restriction exists.@NotNull String[]getRestrictionNames()Return the names of the restrictions present with this access control entry.@Nullable javax.jcr.Value[]getRestrictions(@NotNull String restrictionName)Return the values of the restriction with the specified name ornullif no such restriction exists.booleanisAllow()
-
-
-
Method Detail
-
isAllow
boolean isAllow()
- Returns:
- true if this entry adds
Privileges for the principal; false otherwise.
-
getRestrictionNames
@NotNull @NotNull String[] getRestrictionNames() throws javax.jcr.RepositoryException
Return the names of the restrictions present with this access control entry.- Returns:
- the names of the restrictions
- Throws:
javax.jcr.RepositoryException- if an error occurs.
-
getRestriction
@Nullable @Nullable javax.jcr.Value getRestriction(@NotNull @NotNull String restrictionName) throws javax.jcr.ValueFormatException, javax.jcr.RepositoryExceptionReturn the value of the restriction with the specified name ornullif no such restriction exists. In case the restriction with the specified name contains multiple value this method will callValueFormatException.- Parameters:
restrictionName- The of the restriction as obtained throughgetRestrictionNames().- Returns:
- value of the restriction with the specified name or
nullif no such restriction exists. - Throws:
javax.jcr.ValueFormatException- If the restriction with the specified name contains multiple values.javax.jcr.RepositoryException- if an error occurs.- See Also:
getRestrictions(String)
-
getRestrictions
@Nullable @Nullable javax.jcr.Value[] getRestrictions(@NotNull @NotNull String restrictionName) throws javax.jcr.RepositoryExceptionReturn the values of the restriction with the specified name ornullif no such restriction exists. For restrictions that contain just a single value this method is expected to return an array with a single element even if the underlying implementation stored the restriction in single-value JCR property.- Parameters:
restrictionName- The of the restriction as obtained throughgetRestrictionNames().- Returns:
- the values of the restriction with the specified name as an array
or
nullif no such restriction exists. The array may contain zero, one or multiple values. - Throws:
javax.jcr.RepositoryException- if an error occurs.- See Also:
getRestriction(String)
-
-