public class PermissionServiceImpl extends org.springframework.extensions.surf.util.AbstractLifecycleBean implements PermissionServiceSPI, Extensible
Modifier and Type | Class and Description |
---|---|
protected class |
PermissionServiceImpl.AclTest
Test a permission in the context of the new ACL implementation.
|
protected static class |
PermissionServiceImpl.MutableBoolean |
protected class |
PermissionServiceImpl.NodeTest
Support class to test the permission on a node.
|
protected class |
PermissionServiceImpl.UnconditionalAclTest
Ignores type and aspect requirements on the node
|
protected class |
PermissionServiceImpl.UnconditionalDeniedAclTest
Ignores type and aspect requirements on the node
|
Modifier and Type | Field and Description |
---|---|
protected org.alfresco.repo.cache.SimpleCache<Serializable,org.alfresco.service.cmr.security.AccessStatus> |
accessCache
a transactionally-safe cache to be injected
|
protected AclDAO |
aclDaoComponent |
protected PermissionReference |
allPermissionReference |
protected boolean |
anyDenyDenies |
protected AuthorityService |
authorityService |
protected org.alfresco.service.cmr.dictionary.DictionaryService |
dictionaryService |
protected List<DynamicAuthority> |
dynamicAuthorities |
protected FixedAclUpdater |
fixedAclUpdater |
protected ModelDAO |
modelDAO |
protected org.alfresco.service.cmr.repository.NodeService |
nodeService |
protected OwnableService |
ownableService |
protected PermissionsDaoComponent |
permissionsDaoComponent |
protected PolicyComponent |
policyComponent |
protected org.alfresco.repo.cache.SimpleCache<Serializable,Set<String>> |
readersCache |
protected org.alfresco.repo.cache.SimpleCache<Serializable,Set<String>> |
readersDeniedCache |
protected org.alfresco.repo.tenant.TenantService |
tenantService |
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 |
---|
PermissionServiceImpl()
Standard spring construction.
|
Modifier and Type | Method and Description |
---|---|
protected org.alfresco.service.cmr.security.AccessStatus |
adminRead() |
void |
beforeDeleteChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
Cache clear on delete of a child association from an authority container.
|
protected org.alfresco.service.cmr.security.AccessStatus |
canRead(Long aclId) |
void |
clearPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String authority) |
void |
clearPermission(org.alfresco.service.cmr.repository.StoreRef storeRef,
String authority) |
protected org.alfresco.service.cmr.repository.NodeRef |
convertVersionNodeRefToVersionedNodeRef(org.alfresco.service.cmr.repository.NodeRef versionNodeRef)
Converts specified version nodeRef (eg.
|
protected void |
deletePermission(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String authority,
PermissionReference perm) |
void |
deletePermission(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String authority,
String perm) |
void |
deletePermission(PermissionEntry permissionEntry)
Delete a single permission entry
|
protected void |
deletePermission(org.alfresco.service.cmr.repository.StoreRef storeRef,
String authority,
PermissionReference perm) |
void |
deletePermission(org.alfresco.service.cmr.repository.StoreRef storeRef,
String authority,
String perm) |
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
|
protected Set<org.alfresco.service.cmr.security.AccessPermission> |
getAllPermissionsImpl(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean includeTrue,
boolean includeFalse) |
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) |
boolean |
getAnyDenyDenies() |
Set<String> |
getAuthorisations() |
protected Set<String> |
getAuthorisations(net.sf.acegisecurity.Authentication auth,
org.alfresco.service.cmr.repository.NodeRef nodeRef,
PermissionReference required)
Get the authorisations for the currently authenticated user
|
protected Set<String> |
getAuthorisations(net.sf.acegisecurity.Authentication auth,
org.alfresco.service.cmr.security.PermissionContext context) |
protected Set<String> |
getCoreAuthorisations(net.sf.acegisecurity.Authentication auth)
Get the core authorisations for this
auth . |
protected Set<String> |
getDynamicAuthorities(net.sf.acegisecurity.Authentication auth,
org.alfresco.service.cmr.repository.NodeRef nodeRef,
PermissionReference required) |
protected Set<String> |
getDynamicAuthorities(net.sf.acegisecurity.Authentication auth,
org.alfresco.service.cmr.security.PermissionContext context,
Set<String> auths) |
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) |
<M extends Trait> |
getTrait(Class<? extends M> traitAPI) |
protected org.alfresco.service.cmr.security.AccessStatus |
hasPermission(Long aclId,
org.alfresco.service.cmr.security.PermissionContext context,
PermissionReference permission) |
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 passedNodeRef,
PermissionReference permIn)
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)
Optimised read permission evaluation
caveats:
doesn't take into account dynamic authorities/groups
doesn't take into account node types/aspects for permissions
|
void |
init() |
protected boolean |
isVersionNodeRef(org.alfresco.service.cmr.repository.NodeRef nodeRef)
This methods checks whether the specified nodeRef instance is a version nodeRef (ie.
|
protected void |
onBootstrap(org.springframework.context.ApplicationEvent event) |
void |
onCreateChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
Cache clear on create of a child association from an authority container.
|
void |
onMoveNode(org.alfresco.service.cmr.repository.ChildAssociationRef oldChildAssocRef,
org.alfresco.service.cmr.repository.ChildAssociationRef newChildAssocRef)
Cache clear on move node
|
protected void |
onShutdown(org.springframework.context.ApplicationEvent event)
No-op
|
protected org.alfresco.service.cmr.security.AccessStatus |
ownerRead(String username,
org.alfresco.service.cmr.repository.NodeRef nodeRef) |
void |
setAccessCache(org.alfresco.repo.cache.SimpleCache<Serializable,org.alfresco.service.cmr.security.AccessStatus> accessCache)
Set the permissions access cache.
|
void |
setAclDAO(AclDAO aclDaoComponent)
Set the ACL DAO component.
|
void |
setAnyDenyDenies(boolean anyDenyDenies) |
void |
setAuthorityService(AuthorityService authorityService)
Set the authority service.
|
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
Set the dictionary service
|
void |
setDynamicAuthorities(List<DynamicAuthority> dynamicAuthorities)
Set the dynamic authorities
|
void |
setFixedAclUpdater(FixedAclUpdater fixedAclUpdater) |
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 |
setModelDAO(ModelDAO modelDAO)
Set the permissions model dao
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Set the node service.
|
void |
setOwnableService(OwnableService ownableService)
Set the ownable service.
|
void |
setPermission(NodePermissionEntry nodePermissionEntry)
Set the permissions on a node.
|
protected void |
setPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String authority,
PermissionReference perm,
boolean allow) |
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.
|
protected void |
setPermission(org.alfresco.service.cmr.repository.StoreRef storeRef,
String authority,
PermissionReference permission,
boolean allow) |
void |
setPermission(org.alfresco.service.cmr.repository.StoreRef storeRef,
String authority,
String perm,
boolean allow) |
void |
setPermissionsDaoComponent(PermissionsDaoComponent permissionsDaoComponent)
Set the permissions dao component
|
void |
setPolicyComponent(PolicyComponent policyComponent)
Set the policy component
|
void |
setPolicyIgnoreUtil(PolicyIgnoreUtil policyIgnoreUtil) |
void |
setReadersCache(org.alfresco.repo.cache.SimpleCache<Serializable,Set<String>> readersCache) |
void |
setReadersDeniedCache(org.alfresco.repo.cache.SimpleCache<Serializable,Set<String>> readersDeniedCache) |
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
Set the tenant service.
|
protected org.alfresco.repo.cache.SimpleCache<Serializable,org.alfresco.service.cmr.security.AccessStatus> accessCache
protected org.alfresco.repo.cache.SimpleCache<Serializable,Set<String>> readersCache
protected org.alfresco.repo.cache.SimpleCache<Serializable,Set<String>> readersDeniedCache
protected ModelDAO modelDAO
protected PermissionsDaoComponent permissionsDaoComponent
protected org.alfresco.service.cmr.repository.NodeService nodeService
protected org.alfresco.repo.tenant.TenantService tenantService
protected org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
protected OwnableService ownableService
protected AuthorityService authorityService
protected List<DynamicAuthority> dynamicAuthorities
protected PolicyComponent policyComponent
protected AclDAO aclDaoComponent
protected PermissionReference allPermissionReference
protected FixedAclUpdater fixedAclUpdater
protected boolean anyDenyDenies
public PermissionServiceImpl()
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
dictionaryService
- DictionaryServicepublic void setAnyDenyDenies(boolean anyDenyDenies)
anyDenyDenies
- the anyDenyDenies to setpublic boolean getAnyDenyDenies()
public void setModelDAO(ModelDAO modelDAO)
modelDAO
- ModelDAOpublic void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService
- NodeServicepublic void setOwnableService(OwnableService ownableService)
ownableService
- OwnableServicepublic void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
tenantService
- TenantServicepublic void setPermissionsDaoComponent(PermissionsDaoComponent permissionsDaoComponent)
permissionsDaoComponent
- PermissionsDaoComponentpublic void setAuthorityService(AuthorityService authorityService)
authorityService
- AuthorityServicepublic void setDynamicAuthorities(List<DynamicAuthority> dynamicAuthorities)
public void setAclDAO(AclDAO aclDaoComponent)
aclDaoComponent
- AclDAOpublic void setFixedAclUpdater(FixedAclUpdater fixedAclUpdater)
public void setAccessCache(org.alfresco.repo.cache.SimpleCache<Serializable,org.alfresco.service.cmr.security.AccessStatus> accessCache)
accessCache
- a transactionally safe cachepublic void setReadersCache(org.alfresco.repo.cache.SimpleCache<Serializable,Set<String>> readersCache)
readersCache
- the readersCache to setpublic void setReadersDeniedCache(org.alfresco.repo.cache.SimpleCache<Serializable,Set<String>> readersDeniedCache)
readersDeniedCache
- the readersDeniedCache to setpublic void setPolicyComponent(PolicyComponent policyComponent)
policyComponent
- PolicyComponentpublic void setPolicyIgnoreUtil(PolicyIgnoreUtil policyIgnoreUtil)
public void onMoveNode(org.alfresco.service.cmr.repository.ChildAssociationRef oldChildAssocRef, org.alfresco.service.cmr.repository.ChildAssociationRef newChildAssocRef)
oldChildAssocRef
- ChildAssociationRefnewChildAssocRef
- ChildAssociationRefpublic void onCreateChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
childAssocRef
- ChildAssociationRefpublic void beforeDeleteChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
childAssocRef
- ChildAssociationRefprotected void onBootstrap(org.springframework.context.ApplicationEvent event)
onBootstrap
in class org.springframework.extensions.surf.util.AbstractLifecycleBean
protected void onShutdown(org.springframework.context.ApplicationEvent event)
onShutdown
in class org.springframework.extensions.surf.util.AbstractLifecycleBean
public void init()
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<org.alfresco.service.cmr.security.AccessPermission> getAllSetPermissions(org.alfresco.service.cmr.repository.StoreRef storeRef)
getAllSetPermissions
in interface org.alfresco.service.cmr.security.PermissionService
protected Set<org.alfresco.service.cmr.security.AccessPermission> getAllPermissionsImpl(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean includeTrue, boolean includeFalse)
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 NodePermissionEntry getSetPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
PermissionServiceSPI
getSetPermissions
in interface PermissionServiceSPI
nodeRef
- NodeRefpublic NodePermissionEntry getSetPermissions(org.alfresco.service.cmr.repository.StoreRef storeRef)
PermissionServiceSPI
getSetPermissions
in interface PermissionServiceSPI
storeRef
- StoreRefpublic org.alfresco.service.cmr.security.AccessStatus hasPermission(org.alfresco.service.cmr.repository.NodeRef passedNodeRef, PermissionReference permIn)
PermissionServiceSPI
hasPermission
in interface PermissionServiceSPI
passedNodeRef
- NodeRefpermIn
- 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
protected org.alfresco.service.cmr.security.AccessStatus hasPermission(Long aclId, org.alfresco.service.cmr.security.PermissionContext context, PermissionReference permission)
protected Set<String> getCoreAuthorisations(net.sf.acegisecurity.Authentication auth)
auth
. If null
this
will be an empty set. Otherwise it will be a Lazy loaded Set of authorities
from the authority node structure PLUS any granted authorities.protected Set<String> getAuthorisations(net.sf.acegisecurity.Authentication auth, org.alfresco.service.cmr.repository.NodeRef nodeRef, PermissionReference required)
auth
- AuthenticationnodeRef
- NodeRefrequired
- PermissionReferenceprotected Set<String> getDynamicAuthorities(net.sf.acegisecurity.Authentication auth, org.alfresco.service.cmr.repository.NodeRef nodeRef, PermissionReference required)
protected Set<String> getAuthorisations(net.sf.acegisecurity.Authentication auth, org.alfresco.service.cmr.security.PermissionContext context)
protected Set<String> getDynamicAuthorities(net.sf.acegisecurity.Authentication auth, org.alfresco.service.cmr.security.PermissionContext context, Set<String> auths)
public NodePermissionEntry explainPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, PermissionReference perm)
PermissionServiceSPI
explainPermission
in interface PermissionServiceSPI
nodeRef
- NodeRefperm
- PermissionReferencepublic 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 perm)
deletePermission
in interface org.alfresco.service.cmr.security.PermissionService
protected void deletePermission(org.alfresco.service.cmr.repository.StoreRef storeRef, String authority, PermissionReference perm)
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 perm, boolean allow)
setPermission
in interface org.alfresco.service.cmr.security.PermissionService
protected void setPermission(org.alfresco.service.cmr.repository.StoreRef storeRef, String authority, PermissionReference permission, boolean allow)
public void deletePermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
deletePermissions
in interface org.alfresco.service.cmr.security.PermissionService
public void deletePermissions(NodePermissionEntry nodePermissionEntry)
PermissionServiceSPI
deletePermissions
in interface PermissionServiceSPI
nodePermissionEntry
- NodePermissionEntrypublic void deletePermission(PermissionEntry permissionEntry)
PermissionServiceSPI
deletePermission
in interface PermissionServiceSPI
permissionEntry
- PermissionEntrydeletePermission(NodeRef, String, PermissionReference)
protected void deletePermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, String authority, PermissionReference perm)
public void clearPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, String authority)
clearPermission
in interface org.alfresco.service.cmr.security.PermissionService
protected void setPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, String authority, PermissionReference perm, boolean allow)
public void setPermission(PermissionEntry permissionEntry)
PermissionServiceSPI
setPermission
in interface PermissionServiceSPI
permissionEntry
- PermissionEntrypublic void setPermission(NodePermissionEntry nodePermissionEntry)
PermissionServiceSPI
setPermission
in interface PermissionServiceSPI
nodePermissionEntry
- NodePermissionEntrypublic 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
PermissionService.getInheritParentPermissions(org.alfresco.service.cmr.repository.NodeRef)
public 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 getAllPermissionReference()
PermissionServiceSPI
getAllPermissionReference
in interface PermissionServiceSPI
public String getPermission(PermissionReference permissionReference)
PermissionServiceSPI
getPermission
in interface PermissionServiceSPI
permissionReference
- PermissionReferencepublic PermissionReference getPermissionReference(String permissionName)
PermissionServiceSPI
getPermissionReference
in interface PermissionServiceSPI
permissionName
- Stringpublic Set<PermissionReference> getSettablePermissionReferences(org.alfresco.service.namespace.QName type)
PermissionServiceSPI
getSettablePermissionReferences
in interface PermissionServiceSPI
type
- QNamepublic Set<PermissionReference> getSettablePermissionReferences(org.alfresco.service.cmr.repository.NodeRef nodeRef)
PermissionServiceSPI
getSettablePermissionReferences
in interface PermissionServiceSPI
nodeRef
- NodeRefpublic void deletePermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, String authority, String perm)
deletePermission
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 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 deletePermissions(String recipient)
PermissionServiceSPI
deletePermissions
in interface PermissionServiceSPI
recipient
- Stringpublic org.alfresco.service.cmr.security.AccessStatus hasReadPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef)
hasReadPermission
in interface org.alfresco.service.cmr.security.PermissionService
protected org.alfresco.service.cmr.security.AccessStatus adminRead()
protected org.alfresco.service.cmr.security.AccessStatus ownerRead(String username, org.alfresco.service.cmr.repository.NodeRef nodeRef)
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
aclId
- Longprotected org.alfresco.service.cmr.security.AccessStatus canRead(Long aclId)
protected boolean isVersionNodeRef(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- - version nodeRefprotected org.alfresco.service.cmr.repository.NodeRef convertVersionNodeRefToVersionedNodeRef(org.alfresco.service.cmr.repository.NodeRef versionNodeRef)
versionNodeRef
- - always version nodeRef (ie. in the 'version' store)public Set<String> getAuthorisations()
getAuthorisations
in interface org.alfresco.service.cmr.security.PermissionService
public <M extends Trait> ExtendedTrait<M> getTrait(Class<? extends M> traitAPI)
getTrait
in interface Extensible
Copyright © 2005–2017 Alfresco Software. All rights reserved.