|
Field Summary | ||
ADD_CHILDREN | ||
ADMINISTRATOR_AUTHORITY The admin authority - currently a role. |
||
ALL_AUTHORITIES The group that contains everyone except guest. |
||
ALL_PERMISSIONS The permission for all - not defined in the model. |
||
ASPECTS | ||
CANCEL_CHECK_OUT | ||
CHANGE_PERMISSIONS | ||
CHECK_IN | ||
CHECK_OUT | ||
CONSUMER | ||
CONTRIBUTOR | ||
COORDINATOR | ||
CREATE_ASSOCIATIONS | ||
CREATE_CHILDREN | ||
DELETE | ||
DELETE_ASSOCIATIONS | ||
DELETE_CHILDREN | ||
DELETE_NODE | ||
EDITOR | ||
EXECUTE | ||
EXECUTE_CONTENT | ||
FULL_CONTROL | ||
GROUP_PREFIX Prefix used for authorities of type group. |
||
GUEST_AUTHORITY The guest authority |
||
LINK_CHILDREN | ||
LOCK | ||
LOCK_OWNER_AUTHORITY The dynamic authority used for the ownership of locks. |
||
OWNER_AUTHORITY The dynamic authority used for ownership |
||
PROPERTIES | ||
READ | ||
READ_ASSOCIATIONS | ||
READ_CHILDREN | ||
READ_CONTENT | ||
READ_PERMISSIONS | ||
READ_PROPERTIES | ||
ROLE_PREFIX Prefixes used for authorities of type role. |
||
SET_OWNER | ||
TAKE_OWNERSHIP | ||
UNLOCK | ||
WRITE | ||
WRITE_CONTENT | ||
WRITE_PROPERTIES |
Method Summary | ||
void |
clearPermission(NodeRef nodeRef, String authority) Delete all permission for the given authority. |
|
void |
clearPermission(StoreRef storeRef, String authority) Clear all permission masks for an authority on a store |
|
void |
deletePermission(NodeRef nodeRef, String authority, String permission) Find and delete a access control entry by node, authentication and permission. |
|
void |
deletePermission(StoreRef storeRef, String authority, String permission) Remove part of a permission mask on a store |
|
void |
deletePermissions(NodeRef nodeRef) Delete all the permission assigned to the node |
|
void |
deletePermissions(StoreRef storeRef) Remove all permission mask on a store |
|
getAllAuthorities() Get the All Authorities |
||
getAllPermission() Get the All Permission |
||
getAllSetPermissions(NodeRef nodeRef) Get all the AccessPermissions that are set for anyone for the given node |
||
getAllSetPermissions(StoreRef storeRef) Get all the AccessPermissions that are set for anyone for the given node |
||
getAuthorisations() Get the set of authorities for currently authenticated user |
||
boolean |
getInheritParentPermissions(NodeRef nodeRef) Return the global inheritance behaviour for permissions on a node. |
|
getOwnerAuthority() Get the Owner Authority |
||
getPermissions(NodeRef nodeRef) Get all the AccessPermissions that are granted/denied to the current authentication for the given node |
||
getReaders(Long aclId) Get the readers associated with a given ACL |
||
getReadersDenied(Long aclId) Get the denied authorities associated with a given ACL |
||
getSettablePermissions(NodeRef nodeRef) Get the permissions that can be set for a given node |
||
getSettablePermissions(QName type) Get the permissions that can be set for a given type |
||
hasPermission(Long aclID, PermissionContext context, String permission) Check if a permission is allowed on an acl. |
||
hasPermission(NodeRef nodeRef, String permission) Check that the given authentication has a particular permission for the given node. |
||
hasReadPermission(NodeRef nodeRef) Check if read permission is allowed on an acl (optimised) caveats: doesn't take into account dynamic authorities/groups doesn't take into account node types/aspects for permissions |
||
void |
setInheritParentPermissions(NodeRef nodeRef, boolean inheritParentPermissions) Set the global inheritance behaviour for permissions on a node. |
|
void |
setPermission(NodeRef nodeRef, String authority, String permission, boolean allow) Set a specific permission on a node. |
|
void |
setPermission(StoreRef storeRef, String authority, String permission, boolean allow) Add a permission mask to a store |
|