eXo JCR's ExtendedNode interface which extends javax.jcr.Node interface provides additional methods for Access Control management.
| Method signature | Description |
|---|---|
| void setPermissions(Map<String, String[]> permissions) | Assigns a set of Permissions to a node |
| void setPermission(String identity, String[] permission) | Assigns some Identities' Permission to a node |
| void removePermission(String identity) | Removes an Identity's Permission |
| void removePermission(String identity, String permission) | Removes the specified permission for a particular identity |
| void clearACL() | Clears the current ACL so it becomes default |
| AccessControlList getACL() | Returns the current ACL |
| void checkPermission(String actions) | Checks Permission (AccessDeniedException will be thrown if denied) |
The "identity" parameter is a user or a group name. The permissions are the literal strings of the standard action permissions (add_node, set_property, remove, read).