Class AllowPermissionServiceImpl
- java.lang.Object
-
- org.springframework.extensions.surf.util.AbstractLifecycleBean
-
- org.alfresco.repo.security.permissions.impl.PermissionServiceImpl
-
- org.alfresco.repo.security.permissions.impl.AllowPermissionServiceImpl
-
- All Implemented Interfaces:
java.util.EventListener,PermissionServiceSPI,org.alfresco.service.cmr.security.PermissionService,Extensible,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener
public class AllowPermissionServiceImpl extends PermissionServiceImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.alfresco.repo.security.permissions.impl.PermissionServiceImpl
PermissionServiceImpl.AclTest, PermissionServiceImpl.MutableBoolean, PermissionServiceImpl.NodeTest, PermissionServiceImpl.UnconditionalAclTest, PermissionServiceImpl.UnconditionalDeniedAclTest
-
-
Field Summary
-
Fields inherited from class org.alfresco.repo.security.permissions.impl.PermissionServiceImpl
accessCache, aclDaoComponent, allPermissionReference, anyDenyDenies, authorityService, dictionaryService, dynamicAuthorities, fixedAclUpdater, modelDAO, nodeService, ownableService, permissionsDaoComponent, policyComponent, readersCache, readersDeniedCache, tenantService
-
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 AllowPermissionServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.-
Methods inherited from class org.alfresco.repo.security.permissions.impl.PermissionServiceImpl
adminRead, beforeDeleteChildAssociation, canRead, 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, getReaders, getReadersDenied, getSetPermissions, getSetPermissions, getSettablePermissionReferences, getSettablePermissionReferences, getSettablePermissions, getSettablePermissions, getTrait, hasPermission, hasPermission, hasReadPermission, init, isVersionNodeRef, onBootstrap, onCreateChildAssociation, onMoveNode, onShutdown, ownerRead, setAccessCache, setAclDAO, setAnyDenyDenies, setAuthorityService, setDictionaryService, setDynamicAuthorities, setFixedAclUpdater, setInheritParentPermissions, setInheritParentPermissions, setModelDAO, setNodeService, setOwnableService, setPermission, setPermission, setPermission, setPermission, setPermission, setPermission, setPermissionsDaoComponent, setPolicyComponent, setPolicyIgnoreUtil, setReadersCache, setReadersDeniedCache, setTenantService
-
-
-
-
Method Detail
-
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- Overrides:
hasPermissionin classPermissionServiceImpl- Parameters:
nodeRef- NodeRefperm- PermissionReference- Returns:
- the access status
-
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- Overrides:
hasPermissionin classPermissionServiceImpl
-
-