public class PermissionServiceNOOPImpl extends Object implements PermissionServiceSPI
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 and Description |
---|
PermissionServiceNOOPImpl() |
Modifier and Type | Method and Description |
---|---|
void |
clearPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String authority) |
void |
clearPermission(org.alfresco.service.cmr.repository.StoreRef storeRef,
String authority) |
void |
deletePermission(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String authority,
String perm) |
void |
deletePermission(PermissionEntry permissionEntry)
Delete a single permission entry
|
void |
deletePermission(org.alfresco.service.cmr.repository.StoreRef storeRef,
String authority,
String permission) |
void |
deletePermissions(NodePermissionEntry nodePermissionEntry)
Delete the permissions defined by the nodePermissionEntry
|
void |
deletePermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
void |
deletePermissions(org.alfresco.service.cmr.repository.StoreRef storeRef) |
void |
deletePermissions(String recipient)
Delete permissions for the given recipient.
|
NodePermissionEntry |
explainPermission(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.
|
String |
getAllAuthorities() |
String |
getAllPermission() |
PermissionReference |
getAllPermissionReference()
Get the All Permission
|
Set<org.alfresco.service.cmr.security.AccessPermission> |
getAllSetPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
Set<org.alfresco.service.cmr.security.AccessPermission> |
getAllSetPermissions(org.alfresco.service.cmr.repository.StoreRef storeRef) |
Set<String> |
getAuthorisations() |
boolean |
getInheritParentPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
String |
getOwnerAuthority() |
String |
getPermission(PermissionReference permissionReference)
Get the string that can be used to identify the given permission reference.
|
PermissionReference |
getPermissionReference(org.alfresco.service.namespace.QName qname,
String permissionName)
Get the permission reference for the given data type and permission name.
|
PermissionReference |
getPermissionReference(String permissionName)
Get the permission reference by permission name.
|
Set<org.alfresco.service.cmr.security.AccessPermission> |
getPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
Set<String> |
getReaders(Long aclId) |
Set<String> |
getReadersDenied(Long aclId) |
NodePermissionEntry |
getSetPermissions(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)
|
NodePermissionEntry |
getSetPermissions(org.alfresco.service.cmr.repository.StoreRef storeRef)
Get the permissions set for the store
|
Set<PermissionReference> |
getSettablePermissionReferences(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Get the permissions that can be set for a given type
|
Set<PermissionReference> |
getSettablePermissionReferences(org.alfresco.service.namespace.QName type)
Get the permissions that can be set for a given type
|
Set<String> |
getSettablePermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
Set<String> |
getSettablePermissions(org.alfresco.service.namespace.QName type) |
org.alfresco.service.cmr.security.AccessStatus |
hasPermission(Long aclID,
org.alfresco.service.cmr.security.PermissionContext context,
String permission) |
org.alfresco.service.cmr.security.AccessStatus |
hasPermission(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.AccessStatus |
hasPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String perm) |
org.alfresco.service.cmr.security.AccessStatus |
hasReadPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
void |
setInheritParentPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean inheritParentPermissions) |
void |
setInheritParentPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean inheritParentPermissions,
boolean asyncCall) |
void |
setPermission(NodePermissionEntry nodePermissionEntry)
Set the permissions on a node.
|
void |
setPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String authority,
String perm,
boolean allow) |
void |
setPermission(PermissionEntry permissionEntry)
Add or set a permission entry on a node.
|
void |
setPermission(org.alfresco.service.cmr.repository.StoreRef storeRef,
String authority,
String permission,
boolean allow) |
public String getOwnerAuthority()
getOwnerAuthority
in interface org.alfresco.service.cmr.security.PermissionService
public String getAllAuthorities()
getAllAuthorities
in interface org.alfresco.service.cmr.security.PermissionService
public String getAllPermission()
getAllPermission
in interface org.alfresco.service.cmr.security.PermissionService
public Set<org.alfresco.service.cmr.security.AccessPermission> getPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
getPermissions
in interface org.alfresco.service.cmr.security.PermissionService
public Set<org.alfresco.service.cmr.security.AccessPermission> getAllSetPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
getAllSetPermissions
in interface org.alfresco.service.cmr.security.PermissionService
public Set<String> getSettablePermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
getSettablePermissions
in interface org.alfresco.service.cmr.security.PermissionService
public Set<String> getSettablePermissions(org.alfresco.service.namespace.QName type)
getSettablePermissions
in interface org.alfresco.service.cmr.security.PermissionService
public org.alfresco.service.cmr.security.AccessStatus hasPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, String perm)
hasPermission
in interface org.alfresco.service.cmr.security.PermissionService
public void deletePermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
deletePermissions
in interface org.alfresco.service.cmr.security.PermissionService
public void deletePermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, String authority, String perm)
deletePermission
in interface org.alfresco.service.cmr.security.PermissionService
public void setPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, String authority, String perm, boolean allow)
setPermission
in interface org.alfresco.service.cmr.security.PermissionService
public void setInheritParentPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean inheritParentPermissions)
setInheritParentPermissions
in interface org.alfresco.service.cmr.security.PermissionService
public void setInheritParentPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean inheritParentPermissions, boolean asyncCall)
setInheritParentPermissions
in interface org.alfresco.service.cmr.security.PermissionService
public boolean getInheritParentPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
getInheritParentPermissions
in interface org.alfresco.service.cmr.security.PermissionService
public void clearPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, String authority)
clearPermission
in interface org.alfresco.service.cmr.security.PermissionService
public void deletePermission(PermissionEntry permissionEntry)
PermissionServiceSPI
deletePermission
in interface PermissionServiceSPI
permissionEntry
- PermissionEntrypublic void deletePermissions(NodePermissionEntry nodePermissionEntry)
PermissionServiceSPI
deletePermissions
in interface PermissionServiceSPI
nodePermissionEntry
- NodePermissionEntrypublic void deletePermissions(String recipient)
PermissionServiceSPI
deletePermissions
in interface PermissionServiceSPI
recipient
- Stringpublic NodePermissionEntry explainPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, PermissionReference perm)
PermissionServiceSPI
explainPermission
in interface PermissionServiceSPI
nodeRef
- NodeRefperm
- PermissionReferencepublic PermissionReference getAllPermissionReference()
PermissionServiceSPI
getAllPermissionReference
in interface PermissionServiceSPI
public String getPermission(PermissionReference permissionReference)
PermissionServiceSPI
getPermission
in interface PermissionServiceSPI
permissionReference
- PermissionReferencepublic PermissionReference getPermissionReference(org.alfresco.service.namespace.QName qname, String permissionName)
PermissionServiceSPI
getPermissionReference
in interface PermissionServiceSPI
qname
- - may be null if the permission name is uniquepermissionName
- Stringpublic PermissionReference getPermissionReference(String permissionName)
PermissionServiceSPI
getPermissionReference
in interface PermissionServiceSPI
permissionName
- Stringpublic NodePermissionEntry getSetPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
PermissionServiceSPI
getSetPermissions
in interface PermissionServiceSPI
nodeRef
- NodeRefpublic Set<PermissionReference> getSettablePermissionReferences(org.alfresco.service.cmr.repository.NodeRef nodeRef)
PermissionServiceSPI
getSettablePermissionReferences
in interface PermissionServiceSPI
nodeRef
- NodeRefpublic Set<PermissionReference> getSettablePermissionReferences(org.alfresco.service.namespace.QName type)
PermissionServiceSPI
getSettablePermissionReferences
in interface PermissionServiceSPI
type
- QNamepublic org.alfresco.service.cmr.security.AccessStatus hasPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, PermissionReference perm)
PermissionServiceSPI
hasPermission
in interface PermissionServiceSPI
nodeRef
- NodeRefperm
- PermissionReferencepublic org.alfresco.service.cmr.security.AccessStatus hasPermission(Long aclID, org.alfresco.service.cmr.security.PermissionContext context, String permission)
hasPermission
in interface org.alfresco.service.cmr.security.PermissionService
public Set<String> getReaders(Long aclId)
getReaders
in interface org.alfresco.service.cmr.security.PermissionService
public Set<String> getReadersDenied(Long aclId)
getReadersDenied
in interface org.alfresco.service.cmr.security.PermissionService
public void setPermission(NodePermissionEntry nodePermissionEntry)
PermissionServiceSPI
setPermission
in interface PermissionServiceSPI
nodePermissionEntry
- NodePermissionEntrypublic void setPermission(PermissionEntry permissionEntry)
PermissionServiceSPI
setPermission
in interface PermissionServiceSPI
permissionEntry
- PermissionEntrypublic void clearPermission(org.alfresco.service.cmr.repository.StoreRef storeRef, String authority)
clearPermission
in interface org.alfresco.service.cmr.security.PermissionService
public void deletePermission(org.alfresco.service.cmr.repository.StoreRef storeRef, String authority, String permission)
deletePermission
in interface org.alfresco.service.cmr.security.PermissionService
public void deletePermissions(org.alfresco.service.cmr.repository.StoreRef storeRef)
deletePermissions
in interface org.alfresco.service.cmr.security.PermissionService
public void setPermission(org.alfresco.service.cmr.repository.StoreRef storeRef, String authority, String permission, boolean allow)
setPermission
in interface org.alfresco.service.cmr.security.PermissionService
public Set<org.alfresco.service.cmr.security.AccessPermission> getAllSetPermissions(org.alfresco.service.cmr.repository.StoreRef storeRef)
getAllSetPermissions
in interface org.alfresco.service.cmr.security.PermissionService
public NodePermissionEntry getSetPermissions(org.alfresco.service.cmr.repository.StoreRef storeRef)
PermissionServiceSPI
getSetPermissions
in interface PermissionServiceSPI
storeRef
- StoreRefpublic org.alfresco.service.cmr.security.AccessStatus hasReadPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef)
hasReadPermission
in interface org.alfresco.service.cmr.security.PermissionService
Copyright © 2005–2017 Alfresco Software. All rights reserved.