Class LockOwnerDynamicAuthority

java.lang.Object
org.springframework.extensions.surf.util.AbstractLifecycleBean
org.alfresco.repo.security.permissions.dynamic.LockOwnerDynamicAuthority
All Implemented Interfaces:
EventListener, DynamicAuthority, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener

public class LockOwnerDynamicAuthority extends org.springframework.extensions.surf.util.AbstractLifecycleBean implements DynamicAuthority
LockOwnerDynamicAuthority
  • Constructor Details

    • LockOwnerDynamicAuthority

      public LockOwnerDynamicAuthority()
  • Method Details

    • hasAuthority

      public boolean hasAuthority(NodeRef nodeRef, String userName)
      Description copied from interface: DynamicAuthority
      Is this authority granted to the given user for this node ref?
      Specified by:
      hasAuthority in interface DynamicAuthority
      Parameters:
      nodeRef - NodeRef
      userName - String
      Returns:
      true if the current user has the authority
    • getAuthority

      public String getAuthority()
      Description copied from interface: DynamicAuthority
      If this authority is granted this method provides the string representation of the granted authority.
      Specified by:
      getAuthority in interface DynamicAuthority
      Returns:
      the authority taht may be assigned
    • onBootstrap

      protected void onBootstrap(org.springframework.context.ApplicationEvent event)
      Specified by:
      onBootstrap in class org.springframework.extensions.surf.util.AbstractLifecycleBean
    • onShutdown

      protected void onShutdown(org.springframework.context.ApplicationEvent event)
      No-op
      Specified by:
      onShutdown in class org.springframework.extensions.surf.util.AbstractLifecycleBean
    • setLockService

      public void setLockService(LockService lockService)
      Set the lock service
    • setCheckOutCheckInService

      public void setCheckOutCheckInService(CheckOutCheckInService checkOutCheckInService)
      Service to get the check-in details. This is not used for Spring configuration because it requires a permission-wrapped public service that in turn depends on this component.
    • setModelDAO

      public void setModelDAO(ModelDAO modelDAO)
      Set the permissions model dao
    • setRequiredFor

      public void setRequiredFor(List<String> requiredFor)
      Set the permissions for which this dynamic authority is required
    • requiredFor

      public Set<PermissionReference> requiredFor()
      Description copied from interface: DynamicAuthority
      For what permission checks is this dynamic authority required? If null, it is required for all checks.
      Specified by:
      requiredFor in interface DynamicAuthority
      Returns:
      the set of permissions for which this dynamic authority should be evaluated