Class PermissionServiceNOOPImpl
- java.lang.Object
-
- org.alfresco.repo.security.permissions.noop.PermissionServiceNOOPImpl
-
- All Implemented Interfaces:
PermissionServiceSPI,org.alfresco.service.cmr.security.PermissionService
public class PermissionServiceNOOPImpl extends java.lang.Object implements PermissionServiceSPI
Dummy implementation of Permissions Service
-
-
Field Summary
-
Fields inherited from interface org.alfresco.service.cmr.security.PermissionService
ADD_CHILDREN, ADMINISTRATOR_AUTHORITY, ALL_AUTHORITIES, ALL_PERMISSIONS, 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, 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, TAKE_OWNERSHIP, UNLOCK, WRITE, WRITE_CONTENT, WRITE_PROPERTIES
-
-
Constructor Summary
Constructors Constructor Description PermissionServiceNOOPImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String authority)voidclearPermission(org.alfresco.service.cmr.repository.StoreRef storeRef, java.lang.String authority)voiddeletePermission(PermissionEntry permissionEntry)Delete a single permission entryvoiddeletePermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String authority, java.lang.String perm)voiddeletePermission(org.alfresco.service.cmr.repository.StoreRef storeRef, java.lang.String authority, java.lang.String permission)voiddeletePermissions(java.lang.String recipient)Delete permissions for the given recipient.voiddeletePermissions(NodePermissionEntry nodePermissionEntry)Delete the permissions defined by the nodePermissionEntryvoiddeletePermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)voiddeletePermissions(org.alfresco.service.cmr.repository.StoreRef storeRef)NodePermissionEntryexplainPermission(org.alfresco.service.cmr.repository.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.java.lang.StringgetAllAuthorities()java.lang.StringgetAllPermission()PermissionReferencegetAllPermissionReference()Get the All Permissionjava.util.Set<org.alfresco.service.cmr.security.AccessPermission>getAllSetPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)java.util.Set<org.alfresco.service.cmr.security.AccessPermission>getAllSetPermissions(org.alfresco.service.cmr.repository.StoreRef storeRef)java.util.Set<java.lang.String>getAuthorisations()booleangetInheritParentPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)java.lang.StringgetOwnerAuthority()java.lang.StringgetPermission(PermissionReference permissionReference)Get the string that can be used to identify the given permission reference.PermissionReferencegetPermissionReference(java.lang.String permissionName)Get the permission reference by permission name.PermissionReferencegetPermissionReference(org.alfresco.service.namespace.QName qname, java.lang.String permissionName)Get the permission reference for the given data type and permission name.java.util.Set<org.alfresco.service.cmr.security.AccessPermission>getPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)java.util.Set<java.lang.String>getReaders(java.lang.Long aclId)java.util.Set<java.lang.String>getReadersDenied(java.lang.Long aclId)NodePermissionEntrygetSetPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)Get the permissions that have been set on the given node (it knows nothing of the parent permissions)NodePermissionEntrygetSetPermissions(org.alfresco.service.cmr.repository.StoreRef storeRef)Get the permissions set for the storejava.util.Set<PermissionReference>getSettablePermissionReferences(org.alfresco.service.cmr.repository.NodeRef nodeRef)Get the permissions that can be set for a given typejava.util.Set<PermissionReference>getSettablePermissionReferences(org.alfresco.service.namespace.QName type)Get the permissions that can be set for a given typejava.util.Set<java.lang.String>getSettablePermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)java.util.Set<java.lang.String>getSettablePermissions(org.alfresco.service.namespace.QName type)org.alfresco.service.cmr.security.AccessStatushasPermission(java.lang.Long aclID, org.alfresco.service.cmr.security.PermissionContext context, java.lang.String permission)org.alfresco.service.cmr.security.AccessStatushasPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String perm)org.alfresco.service.cmr.security.AccessStatushasPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, PermissionReference perm)Check that the given authentication has a particular permission for the given node.org.alfresco.service.cmr.security.AccessStatushasReadPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef)voidsetInheritParentPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean inheritParentPermissions)voidsetInheritParentPermissions(org.alfresco.service.cmr.repository.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(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String authority, java.lang.String perm, boolean allow)voidsetPermission(org.alfresco.service.cmr.repository.StoreRef storeRef, java.lang.String authority, java.lang.String permission, boolean allow)
-
-
-
Method Detail
-
getOwnerAuthority
public java.lang.String getOwnerAuthority()
- Specified by:
getOwnerAuthorityin interfaceorg.alfresco.service.cmr.security.PermissionService
-
getAllAuthorities
public java.lang.String getAllAuthorities()
- Specified by:
getAllAuthoritiesin interfaceorg.alfresco.service.cmr.security.PermissionService
-
getAllPermission
public java.lang.String getAllPermission()
- Specified by:
getAllPermissionin interfaceorg.alfresco.service.cmr.security.PermissionService
-
getPermissions
public java.util.Set<org.alfresco.service.cmr.security.AccessPermission> getPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
- Specified by:
getPermissionsin interfaceorg.alfresco.service.cmr.security.PermissionService
-
getAllSetPermissions
public java.util.Set<org.alfresco.service.cmr.security.AccessPermission> getAllSetPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
- Specified by:
getAllSetPermissionsin interfaceorg.alfresco.service.cmr.security.PermissionService
-
getSettablePermissions
public java.util.Set<java.lang.String> getSettablePermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
- Specified by:
getSettablePermissionsin interfaceorg.alfresco.service.cmr.security.PermissionService
-
getSettablePermissions
public java.util.Set<java.lang.String> getSettablePermissions(org.alfresco.service.namespace.QName type)
- Specified by:
getSettablePermissionsin interfaceorg.alfresco.service.cmr.security.PermissionService
-
hasPermission
public org.alfresco.service.cmr.security.AccessStatus hasPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String perm)- Specified by:
hasPermissionin interfaceorg.alfresco.service.cmr.security.PermissionService
-
deletePermissions
public void deletePermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
- Specified by:
deletePermissionsin interfaceorg.alfresco.service.cmr.security.PermissionService
-
deletePermission
public void deletePermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String authority, java.lang.String perm)- Specified by:
deletePermissionin interfaceorg.alfresco.service.cmr.security.PermissionService
-
setPermission
public void setPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String authority, java.lang.String perm, boolean allow)- Specified by:
setPermissionin interfaceorg.alfresco.service.cmr.security.PermissionService
-
setInheritParentPermissions
public void setInheritParentPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean inheritParentPermissions)- Specified by:
setInheritParentPermissionsin interfaceorg.alfresco.service.cmr.security.PermissionService
-
setInheritParentPermissions
public void setInheritParentPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean inheritParentPermissions, boolean asyncCall)- Specified by:
setInheritParentPermissionsin interfaceorg.alfresco.service.cmr.security.PermissionService
-
getInheritParentPermissions
public boolean getInheritParentPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
- Specified by:
getInheritParentPermissionsin interfaceorg.alfresco.service.cmr.security.PermissionService
-
clearPermission
public void clearPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String authority)- Specified by:
clearPermissionin interfaceorg.alfresco.service.cmr.security.PermissionService
-
deletePermission
public void deletePermission(PermissionEntry permissionEntry)
Description copied from interface:PermissionServiceSPIDelete a single permission entry- Specified by:
deletePermissionin interfacePermissionServiceSPI- Parameters:
permissionEntry- PermissionEntry
-
deletePermissions
public void deletePermissions(NodePermissionEntry nodePermissionEntry)
Description copied from interface:PermissionServiceSPIDelete the permissions defined by the nodePermissionEntry- Specified by:
deletePermissionsin interfacePermissionServiceSPI- Parameters:
nodePermissionEntry- NodePermissionEntry
-
deletePermissions
public void deletePermissions(java.lang.String recipient)
Description copied from interface:PermissionServiceSPIDelete permissions for the given recipient.- Specified by:
deletePermissionsin interfacePermissionServiceSPI- Parameters:
recipient- String
-
explainPermission
public NodePermissionEntry explainPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, PermissionReference perm)
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
public PermissionReference getAllPermissionReference()
Description copied from interface:PermissionServiceSPIGet the All Permission- Specified by:
getAllPermissionReferencein interfacePermissionServiceSPI- Returns:
- the All permission
-
getPermission
public java.lang.String getPermission(PermissionReference permissionReference)
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
public PermissionReference getPermissionReference(org.alfresco.service.namespace.QName qname, java.lang.String permissionName)
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
public PermissionReference getPermissionReference(java.lang.String permissionName)
Description copied from interface:PermissionServiceSPIGet the permission reference by permission name.- Specified by:
getPermissionReferencein interfacePermissionServiceSPI- Parameters:
permissionName- String- Returns:
- the permission reference
-
getSetPermissions
public NodePermissionEntry getSetPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
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
public java.util.Set<PermissionReference> getSettablePermissionReferences(org.alfresco.service.cmr.repository.NodeRef nodeRef)
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
public java.util.Set<PermissionReference> getSettablePermissionReferences(org.alfresco.service.namespace.QName type)
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
public org.alfresco.service.cmr.security.AccessStatus hasPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, PermissionReference perm)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
public org.alfresco.service.cmr.security.AccessStatus hasPermission(java.lang.Long aclID, org.alfresco.service.cmr.security.PermissionContext context, java.lang.String permission)- Specified by:
hasPermissionin interfaceorg.alfresco.service.cmr.security.PermissionService
-
getReaders
public java.util.Set<java.lang.String> getReaders(java.lang.Long aclId)
- Specified by:
getReadersin interfaceorg.alfresco.service.cmr.security.PermissionService
-
getReadersDenied
public java.util.Set<java.lang.String> getReadersDenied(java.lang.Long aclId)
- Specified by:
getReadersDeniedin interfaceorg.alfresco.service.cmr.security.PermissionService
-
setPermission
public void setPermission(NodePermissionEntry nodePermissionEntry)
Description copied from interface:PermissionServiceSPISet the permissions on a node.- Specified by:
setPermissionin interfacePermissionServiceSPI- Parameters:
nodePermissionEntry- NodePermissionEntry
-
setPermission
public void setPermission(PermissionEntry permissionEntry)
Description copied from interface:PermissionServiceSPIAdd or set a permission entry on a node.- Specified by:
setPermissionin interfacePermissionServiceSPI- Parameters:
permissionEntry- PermissionEntry
-
clearPermission
public void clearPermission(org.alfresco.service.cmr.repository.StoreRef storeRef, java.lang.String authority)- Specified by:
clearPermissionin interfaceorg.alfresco.service.cmr.security.PermissionService
-
deletePermission
public void deletePermission(org.alfresco.service.cmr.repository.StoreRef storeRef, java.lang.String authority, java.lang.String permission)- Specified by:
deletePermissionin interfaceorg.alfresco.service.cmr.security.PermissionService
-
deletePermissions
public void deletePermissions(org.alfresco.service.cmr.repository.StoreRef storeRef)
- Specified by:
deletePermissionsin interfaceorg.alfresco.service.cmr.security.PermissionService
-
setPermission
public void setPermission(org.alfresco.service.cmr.repository.StoreRef storeRef, java.lang.String authority, java.lang.String permission, boolean allow)- Specified by:
setPermissionin interfaceorg.alfresco.service.cmr.security.PermissionService
-
getAllSetPermissions
public java.util.Set<org.alfresco.service.cmr.security.AccessPermission> getAllSetPermissions(org.alfresco.service.cmr.repository.StoreRef storeRef)
- Specified by:
getAllSetPermissionsin interfaceorg.alfresco.service.cmr.security.PermissionService
-
getSetPermissions
public NodePermissionEntry getSetPermissions(org.alfresco.service.cmr.repository.StoreRef storeRef)
Description copied from interface:PermissionServiceSPIGet the permissions set for the store- Specified by:
getSetPermissionsin interfacePermissionServiceSPI- Parameters:
storeRef- StoreRef- Returns:
- - the node permission entry
-
hasReadPermission
public org.alfresco.service.cmr.security.AccessStatus hasReadPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef)
- Specified by:
hasReadPermissionin interfaceorg.alfresco.service.cmr.security.PermissionService
-
getAuthorisations
public java.util.Set<java.lang.String> getAuthorisations()
- Specified by:
getAuthorisationsin interfaceorg.alfresco.service.cmr.security.PermissionService
-
-