public class ExtendedPermissionServiceImpl extends org.alfresco.repo.security.permissions.impl.PermissionServiceImpl implements ExtendedPermissionService
This is required for SOLR support.
org.alfresco.repo.security.permissions.impl.PermissionServiceImpl.AclTest, org.alfresco.repo.security.permissions.impl.PermissionServiceImpl.MutableBoolean, org.alfresco.repo.security.permissions.impl.PermissionServiceImpl.NodeTest, org.alfresco.repo.security.permissions.impl.PermissionServiceImpl.UnconditionalAclTest, org.alfresco.repo.security.permissions.impl.PermissionServiceImpl.UnconditionalDeniedAclTest| Modifier and Type | Field and Description |
|---|---|
protected org.alfresco.repo.cache.SimpleCache<Serializable,Set<String>> |
writersCache
Writers simple cache
|
accessCache, aclDaoComponent, allPermissionReference, anyDenyDenies, authorityService, dictionaryService, dynamicAuthorities, modelDAO, nodeService, ownableService, permissionsDaoComponent, policyComponent, readersCache, readersDeniedCache, tenantServiceADD_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 |
|---|
ExtendedPermissionServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected org.alfresco.service.cmr.security.AccessStatus |
canRead(Long aclId) |
FilePlanService |
getFilePlanService()
Gets the file plan service
|
Set<String> |
getReaders(Long aclId) |
org.alfresco.util.Pair<Set<String>,Set<String>> |
getReadersAndWriters(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Get the readers and writers for a given node.
|
Set<String> |
getReadersDenied(Long aclId)
Override with check for RM read
|
Set<String> |
getWriters(Long aclId)
Get a set of all the authorities that have write access.
|
org.alfresco.service.cmr.security.AccessStatus |
hasPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String perm)
Override to deal with the possibility of hard coded permission checks in core code.
|
protected org.alfresco.service.cmr.security.AccessStatus |
hasPermissionImpl(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String perm)
Implementation of hasPermission method call.
|
protected void |
onBootstrap(org.springframework.context.ApplicationEvent event) |
void |
setAnyDenyDenies(boolean anyDenyDenies) |
void |
setFilePlanService(FilePlanService filePlanService)
Sets the file plan service
|
void |
setInheritParentPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean inheritParentPermissions) |
void |
setPermissionProcessorRegistry(PermissionProcessorRegistry permissionProcessorRegistry)
Sets the permission processor registry
|
void |
setWritersCache(org.alfresco.repo.cache.SimpleCache<Serializable,Set<String>> writersCache) |
adminRead, beforeDeleteChildAssociation, clearPermission, clearPermission, convertVersionNodeRefToVersionedNodeRef, deletePermission, deletePermission, deletePermission, deletePermission, deletePermission, deletePermissions, deletePermissions, deletePermissions, deletePermissions, explainPermission, getAllAuthorities, getAllPermission, getAllPermissionReference, getAllPermissionsImpl, getAllSetPermissions, getAllSetPermissions, getAnyDenyDenies, getAuthorisations, getAuthorisations, getAuthorisations, getCoreAuthorisations, getDynamicAuthorities, getDynamicAuthorities, getInheritParentPermissions, getOwnerAuthority, getPermission, getPermissionReference, getPermissionReference, getPermissions, getSetPermissions, getSetPermissions, getSettablePermissionReferences, getSettablePermissionReferences, getSettablePermissions, getSettablePermissions, getTrait, hasPermission, hasPermission, hasPermission, hasReadPermission, init, isVersionNodeRef, onCreateChildAssociation, onMoveNode, onShutdown, ownerRead, setAccessCache, setAclDAO, setAuthorityService, setDictionaryService, setDynamicAuthorities, setModelDAO, setNodeService, setOwnableService, setPermission, setPermission, setPermission, setPermission, setPermission, setPermission, setPermissionsDaoComponent, setPolicyComponent, setReadersCache, setReadersDeniedCache, setTenantServicegetApplicationContext, onApplicationEvent, setApplicationContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearPermission, clearPermission, deletePermission, deletePermission, deletePermissions, deletePermissions, getAllAuthorities, getAllPermission, getAllSetPermissions, getAllSetPermissions, getAuthorisations, getInheritParentPermissions, getOwnerAuthority, getPermissions, getSettablePermissions, getSettablePermissions, hasPermission, hasReadPermission, setPermission, setPermissionprotected org.alfresco.repo.cache.SimpleCache<Serializable,Set<String>> writersCache
public FilePlanService getFilePlanService()
public void setFilePlanService(FilePlanService filePlanService)
filePlanService - the filePlanService to setpublic void setPermissionProcessorRegistry(PermissionProcessorRegistry permissionProcessorRegistry)
permissionProcessorRegistry - the permissions processor registrypublic void setAnyDenyDenies(boolean anyDenyDenies)
setAnyDenyDenies in class org.alfresco.repo.security.permissions.impl.PermissionServiceImplPermissionServiceImpl.setAnyDenyDenies(boolean)public void setWritersCache(org.alfresco.repo.cache.SimpleCache<Serializable,Set<String>> writersCache)
writersCache - the writersCache to setprotected void onBootstrap(org.springframework.context.ApplicationEvent event)
onBootstrap in class org.alfresco.repo.security.permissions.impl.PermissionServiceImplPermissionServiceImpl.onBootstrap(org.springframework.context.ApplicationEvent)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.PermissionServicehasPermission in class org.alfresco.repo.security.permissions.impl.PermissionServiceImplPermissionService.hasPermission(org.alfresco.service.cmr.repository.NodeRef,
java.lang.String)protected org.alfresco.service.cmr.security.AccessStatus hasPermissionImpl(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String perm)
Separation also convenient for unit testing.
nodeRef - node referenceperm - permissionAccessStatus access status resultprotected org.alfresco.service.cmr.security.AccessStatus canRead(Long aclId)
canRead in class org.alfresco.repo.security.permissions.impl.PermissionServiceImplPermissionServiceImpl.canRead(java.lang.Long)public Set<String> getReaders(Long aclId)
getReaders in interface org.alfresco.service.cmr.security.PermissionServicegetReaders in class org.alfresco.repo.security.permissions.impl.PermissionServiceImplPermissionServiceImpl.getReaders(java.lang.Long)public Set<String> getReadersDenied(Long aclId)
getReadersDenied in interface org.alfresco.service.cmr.security.PermissionServicegetReadersDenied in class org.alfresco.repo.security.permissions.impl.PermissionServiceImplaclId - public Set<String> getWriters(Long aclId)
ExtendedPermissionServicegetWriters in interface ExtendedPermissionServiceaclId - acl idSet<String> set of authorities with write accessExtendedPermissionService.getWriters(java.lang.Long)public void setInheritParentPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean inheritParentPermissions)
setInheritParentPermissions in interface org.alfresco.service.cmr.security.PermissionServicesetInheritParentPermissions in class org.alfresco.repo.security.permissions.impl.PermissionServiceImplPermissionServiceImpl.setInheritParentPermissions(org.alfresco.service.cmr.repository.NodeRef,
boolean)public org.alfresco.util.Pair<Set<String>,Set<String>> getReadersAndWriters(org.alfresco.service.cmr.repository.NodeRef nodeRef)
ExtendedPermissionServiceThe writers list includes the owner for the node.
getReadersAndWriters in interface ExtendedPermissionServicenodeRef - node referenceExtendedPermissionService.getReadersAndWriters(org.alfresco.service.cmr.repository.NodeRef)Copyright © 2005–2016 Alfresco Software. All rights reserved.