Class PermissionServiceNOOPImpl
java.lang.Object
org.alfresco.repo.security.permissions.noop.PermissionServiceNOOPImpl
- All Implemented Interfaces:
PermissionServiceSPI,PermissionService
Dummy implementation of Permissions Service
-
Field Summary
Fields inherited from interface org.alfresco.service.cmr.security.PermissionService
ADD_CHILDREN, ADMIN_SVC_AUTHORITY, ADMINISTRATOR_AUTHORITY, ALL_AUTHORITIES, ALL_PERMISSIONS, ASPECTS, CANCEL_CHECK_OUT, CHANGE_PERMISSIONS, CHECK_IN, CHECK_OUT, COLLABORATOR_SVC_AUTHORITY, CONSUMER, CONTRIBUTOR, COORDINATOR, CREATE_ASSOCIATIONS, CREATE_CHILDREN, DELETE, DELETE_ASSOCIATIONS, DELETE_CHILDREN, DELETE_NODE, EDITOR, EDITOR_SVC_AUTHORITY, EXECUTE, EXECUTE_CONTENT, FULL_CONTROL, GROUP_PREFIX, GUEST_AUTHORITY, LINK_CHILDREN, LOCK, LOCK_OWNER_AUTHORITY, OWNER_AUTHORITY, PROPERTIES, READ, READ_ASSOCIATIONS, READ_CHILDREN, READ_CONTENT, READ_PERMISSIONS, READ_PROPERTIES, ROLE_PREFIX, SET_OWNER, SVC_AUTHORITIES_SET, TAKE_OWNERSHIP, UNLOCK, WRITE, WRITE_CONTENT, WRITE_PROPERTIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearPermission(NodeRef nodeRef, String authority) voidclearPermission(StoreRef storeRef, String authority) voiddeletePermission(PermissionEntry permissionEntry) Delete a single permission entryvoiddeletePermission(NodeRef nodeRef, String authority, String perm) voiddeletePermission(StoreRef storeRef, String authority, String permission) voiddeletePermissions(String recipient) Delete permissions for the given recipient.voiddeletePermissions(NodePermissionEntry nodePermissionEntry) Delete the permissions defined by the nodePermissionEntryvoiddeletePermissions(NodeRef nodeRef) voiddeletePermissions(StoreRef storeRef) explainPermission(NodeRef nodeRef, PermissionReference perm) Where is the permission set that controls the behaviour for the given permission for the given authentication to access the specified name.Get the All PermissiongetAllSetPermissions(NodeRef nodeRef) getAllSetPermissions(StoreRef storeRef) booleangetInheritParentPermissions(NodeRef nodeRef) getPermission(PermissionReference permissionReference) Get the string that can be used to identify the given permission reference.getPermissionReference(String permissionName) Get the permission reference by permission name.getPermissionReference(QName qname, String permissionName) Get the permission reference for the given data type and permission name.getPermissions(NodeRef nodeRef) getReaders(Long aclId) getReadersDenied(Long aclId) getSetPermissions(NodeRef nodeRef) Get the permissions that have been set on the given node (it knows nothing of the parent permissions)getSetPermissions(StoreRef storeRef) Get the permissions set for the storegetSettablePermissionReferences(NodeRef nodeRef) Get the permissions that can be set for a given typeGet the permissions that can be set for a given typegetSettablePermissions(NodeRef nodeRef) getSettablePermissions(QName type) hasPermission(Long aclID, PermissionContext context, String permission) hasPermission(NodeRef nodeRef, String perm) hasPermission(NodeRef nodeRef, PermissionReference perm) Check that the given authentication has a particular permission for the given node.hasReadPermission(NodeRef nodeRef) voidsetInheritParentPermissions(NodeRef nodeRef, boolean inheritParentPermissions) voidsetInheritParentPermissions(NodeRef nodeRef, boolean inheritParentPermissions, boolean asyncCall) voidsetPermission(NodePermissionEntry nodePermissionEntry) Set the permissions on a node.voidsetPermission(PermissionEntry permissionEntry) Add or set a permission entry on a node.voidsetPermission(NodeRef nodeRef, String authority, String perm, boolean allow) voidsetPermission(StoreRef storeRef, String authority, String permission, boolean allow)
-
Constructor Details
-
PermissionServiceNOOPImpl
public PermissionServiceNOOPImpl()
-
-
Method Details
-
getOwnerAuthority
- Specified by:
getOwnerAuthorityin interfacePermissionService
-
getAllAuthorities
- Specified by:
getAllAuthoritiesin interfacePermissionService
-
getAllPermission
- Specified by:
getAllPermissionin interfacePermissionService
-
getPermissions
- Specified by:
getPermissionsin interfacePermissionService
-
getAllSetPermissions
- Specified by:
getAllSetPermissionsin interfacePermissionService
-
getSettablePermissions
- Specified by:
getSettablePermissionsin interfacePermissionService
-
getSettablePermissions
- Specified by:
getSettablePermissionsin interfacePermissionService
-
hasPermission
- Specified by:
hasPermissionin interfacePermissionService
-
deletePermissions
- Specified by:
deletePermissionsin interfacePermissionService
-
deletePermission
- Specified by:
deletePermissionin interfacePermissionService
-
setPermission
- Specified by:
setPermissionin interfacePermissionService
-
setInheritParentPermissions
- Specified by:
setInheritParentPermissionsin interfacePermissionService
-
setInheritParentPermissions
public void setInheritParentPermissions(NodeRef nodeRef, boolean inheritParentPermissions, boolean asyncCall) - Specified by:
setInheritParentPermissionsin interfacePermissionService
-
getInheritParentPermissions
- Specified by:
getInheritParentPermissionsin interfacePermissionService
-
clearPermission
- Specified by:
clearPermissionin interfacePermissionService
-
deletePermission
Description copied from interface:PermissionServiceSPIDelete a single permission entry- Specified by:
deletePermissionin interfacePermissionServiceSPI- Parameters:
permissionEntry- PermissionEntry
-
deletePermissions
Description copied from interface:PermissionServiceSPIDelete the permissions defined by the nodePermissionEntry- Specified by:
deletePermissionsin interfacePermissionServiceSPI- Parameters:
nodePermissionEntry- NodePermissionEntry
-
deletePermissions
Description copied from interface:PermissionServiceSPIDelete permissions for the given recipient.- Specified by:
deletePermissionsin interfacePermissionServiceSPI- Parameters:
recipient- String
-
explainPermission
Description copied from interface:PermissionServiceSPIWhere is the permission set that controls the behaviour for the given permission for the given authentication to access the specified name.- Specified by:
explainPermissionin interfacePermissionServiceSPI- Parameters:
nodeRef- NodeRefperm- PermissionReference- Returns:
- the node permission entry
-
getAllPermissionReference
Description copied from interface:PermissionServiceSPIGet the All Permission- Specified by:
getAllPermissionReferencein interfacePermissionServiceSPI- Returns:
- the All permission
-
getPermission
Description copied from interface:PermissionServiceSPIGet the string that can be used to identify the given permission reference.- Specified by:
getPermissionin interfacePermissionServiceSPI- Parameters:
permissionReference- PermissionReference- Returns:
- the permission short name
-
getPermissionReference
Description copied from interface:PermissionServiceSPIGet the permission reference for the given data type and permission name.- Specified by:
getPermissionReferencein interfacePermissionServiceSPI- Parameters:
qname- - may be null if the permission name is uniquepermissionName- String- Returns:
- the permission reference
-
getPermissionReference
Description copied from interface:PermissionServiceSPIGet the permission reference by permission name.- Specified by:
getPermissionReferencein interfacePermissionServiceSPI- Parameters:
permissionName- String- Returns:
- the permission reference
-
getSetPermissions
Description copied from interface:PermissionServiceSPIGet the permissions that have been set on the given node (it knows nothing of the parent permissions)- Specified by:
getSetPermissionsin interfacePermissionServiceSPI- Parameters:
nodeRef- NodeRef- Returns:
- the node permission entry
-
getSettablePermissionReferences
Description copied from interface:PermissionServiceSPIGet the permissions that can be set for a given type- Specified by:
getSettablePermissionReferencesin interfacePermissionServiceSPI- Parameters:
nodeRef- NodeRef- Returns:
- the set of permissions
-
getSettablePermissionReferences
Description copied from interface:PermissionServiceSPIGet the permissions that can be set for a given type- Specified by:
getSettablePermissionReferencesin interfacePermissionServiceSPI- Parameters:
type- QName- Returns:
- the set of permissions
-
hasPermission
Description copied from interface:PermissionServiceSPICheck that the given authentication has a particular permission for the given node. (The default behaviour is to inherit permissions)- Specified by:
hasPermissionin interfacePermissionServiceSPI- Parameters:
nodeRef- NodeRefperm- PermissionReference- Returns:
- the access status
-
hasPermission
- Specified by:
hasPermissionin interfacePermissionService
-
getReaders
- Specified by:
getReadersin interfacePermissionService
-
getReadersDenied
- Specified by:
getReadersDeniedin interfacePermissionService
-
setPermission
Description copied from interface:PermissionServiceSPISet the permissions on a node.- Specified by:
setPermissionin interfacePermissionServiceSPI- Parameters:
nodePermissionEntry- NodePermissionEntry
-
setPermission
Description copied from interface:PermissionServiceSPIAdd or set a permission entry on a node.- Specified by:
setPermissionin interfacePermissionServiceSPI- Parameters:
permissionEntry- PermissionEntry
-
clearPermission
- Specified by:
clearPermissionin interfacePermissionService
-
deletePermission
- Specified by:
deletePermissionin interfacePermissionService
-
deletePermissions
- Specified by:
deletePermissionsin interfacePermissionService
-
setPermission
- Specified by:
setPermissionin interfacePermissionService
-
getAllSetPermissions
- Specified by:
getAllSetPermissionsin interfacePermissionService
-
getSetPermissions
Description copied from interface:PermissionServiceSPIGet the permissions set for the store- Specified by:
getSetPermissionsin interfacePermissionServiceSPI- Parameters:
storeRef- StoreRef- Returns:
- - the node permission entry
-
hasReadPermission
- Specified by:
hasReadPermissionin interfacePermissionService
-
getAuthorisations
- Specified by:
getAuthorisationsin interfacePermissionService
-