public interface AccessControlUtils
AccessControlUtils
...Modifier and Type | Method and Description |
---|---|
boolean |
isAcItem(ItemImpl item)
Test if the specified path points to an item that defines AC
information and consequently should be considered protected.
|
boolean |
isAcItem(Path absPath)
Test if the specified path points to an item that defines AC
information.
|
boolean |
isAdminOrSystem(Set<Principal> principals)
Test if the specified set of principals contains an admin or system
principal.
|
boolean |
isReadOnly(Set<Principal> principals)
Test if if the specified set of principals will have read-only permissions
only.
|
boolean isAcItem(Path absPath) throws RepositoryException
absPath
- Path to an item.absPath
contains
access control information.RepositoryException
- If an error occurs.boolean isAcItem(ItemImpl item) throws RepositoryException
item
- An item.item
defines
access control related information is should therefore be considered
protected.RepositoryException
- If an error occurs.boolean isAdminOrSystem(Set<Principal> principals)
principals
- A set of principals.AdminPrincipal
or a SystemPrincipal
.boolean isReadOnly(Set<Principal> principals)
principals
- A set of principals.Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.