org.alfresco.repo.security.permissions.impl
Class AllowPermissionServiceImpl

java.lang.Object
  extended by org.springframework.extensions.surf.util.AbstractLifecycleBean
      extended by org.alfresco.repo.security.permissions.impl.PermissionServiceImpl
          extended by org.alfresco.repo.security.permissions.impl.AllowPermissionServiceImpl
All Implemented Interfaces:
java.util.EventListener, PermissionServiceSPI, org.alfresco.service.cmr.security.PermissionService, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener

public class AllowPermissionServiceImpl
extends PermissionServiceImpl


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, FLATTEN, 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, WCM_CONTENT_CONTRIBUTOR, WCM_CONTENT_MANAGER, WCM_CONTENT_PUBLISHER, WCM_CONTENT_REVIEWER, WCM_STORE_OWNER_AUTHORITY, WRITE, WRITE_CONTENT, WRITE_PROPERTIES
 
Constructor Summary
AllowPermissionServiceImpl()
           
 
Method Summary
 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, java.lang.String perm)
           
 
Methods inherited from class org.alfresco.repo.security.permissions.impl.PermissionServiceImpl
beforeDeleteChildAssociation, clearPermission, clearPermission, deletePermission, deletePermission, deletePermission, deletePermissions, deletePermissions, deletePermissions, deletePermissions, explainPermission, getAllAuthorities, getAllPermission, getAllPermissionReference, getAllSetPermissions, getAllSetPermissions, getAuthorisations, getInheritParentPermissions, getOwnerAuthority, getPermission, getPermissionReference, getPermissionReference, getPermissions, getReaders, getSetPermissions, getSetPermissions, getSettablePermissionReferences, getSettablePermissionReferences, getSettablePermissions, getSettablePermissions, hasPermission, hasReadPermission, init, onBootstrap, onCreateChildAssociation, onMoveNode, onShutdown, setAccessCache, setAclDAO, setAuthorityService, setDictionaryService, setDynamicAuthorities, setInheritParentPermissions, setModelDAO, setNodeService, setOwnableService, setPermission, setPermission, setPermission, setPermission, setPermissionsDaoComponent, setPolicyComponent, setReadersCache, setTenantService
 
Methods inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean
getApplicationContext, onApplicationEvent, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllowPermissionServiceImpl

public AllowPermissionServiceImpl()
Method Detail

hasPermission

public org.alfresco.service.cmr.security.AccessStatus hasPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                                                    PermissionReference perm)
Description copied from interface: PermissionServiceSPI
Check that the given authentication has a particular permission for the given node. (The default behaviour is to inherit permissions)

Specified by:
hasPermission in interface PermissionServiceSPI
Overrides:
hasPermission in class PermissionServiceImpl
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:
hasPermission in interface org.alfresco.service.cmr.security.PermissionService
Overrides:
hasPermission in class PermissionServiceImpl


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.