Interface AccessControlUtils
-
- All Known Implementing Classes:
AbstractAccessControlProvider,ACLProvider,ACLProvider,CombinedProvider,UserAccessControlProvider
public interface AccessControlUtilsAccessControlUtils...
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisAcItem(ItemImpl item)Test if the specified path points to an item that defines AC information and consequently should be considered protected.booleanisAcItem(Path absPath)Test if the specified path points to an item that defines AC information.booleanisAdminOrSystem(Set<Principal> principals)Test if the specified set of principals contains an admin or system principal.booleanisReadOnly(Set<Principal> principals)Test if if the specified set of principals will have read-only permissions only.
-
-
-
Method Detail
-
isAcItem
boolean isAcItem(Path absPath) throws RepositoryException
Test if the specified path points to an item that defines AC information.- Parameters:
absPath- Path to an item.- Returns:
- true if the item at the specified
absPathcontains access control information. - Throws:
RepositoryException- If an error occurs.
-
isAcItem
boolean isAcItem(ItemImpl item) throws RepositoryException
Test if the specified path points to an item that defines AC information and consequently should be considered protected.- Parameters:
item- An item.- Returns:
- true if the item at the specified
itemdefines access control related information is should therefore be considered protected. - Throws:
RepositoryException- If an error occurs.
-
isAdminOrSystem
boolean isAdminOrSystem(Set<Principal> principals)
Test if the specified set of principals contains an admin or system principal.- Parameters:
principals- A set of principals.- Returns:
- true if the specified set of principals contains an
AdminPrincipalor aSystemPrincipal.
-
isReadOnly
boolean isReadOnly(Set<Principal> principals)
Test if if the specified set of principals will have read-only permissions only. False otherwise (or if it cannot be determined from the principal set only).- Parameters:
principals- A set of principals.- Returns:
- true if the specified set of principals will only be granted read permission on all items.
-
-