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
-
Field Summary
Fields inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIf this authority is granted this method provides the string representation of the granted authority.booleanhasAuthority(NodeRef nodeRef, String userName) Is this authority granted to the given user for this node ref?protected voidonBootstrap(org.springframework.context.ApplicationEvent event) protected voidonShutdown(org.springframework.context.ApplicationEvent event) No-opFor what permission checks is this dynamic authority required? If null, it is required for all checks.voidsetCheckOutCheckInService(CheckOutCheckInService checkOutCheckInService) Service to get the check-in details.voidsetLockService(LockService lockService) Set the lock servicevoidsetModelDAO(ModelDAO modelDAO) Set the permissions model daovoidsetRequiredFor(List<String> requiredFor) Set the permissions for which this dynamic authority is requiredMethods inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean
getApplicationContext, onApplicationEvent, setApplicationContext
-
Constructor Details
-
LockOwnerDynamicAuthority
public LockOwnerDynamicAuthority()
-
-
Method Details
-
hasAuthority
Description copied from interface:DynamicAuthorityIs this authority granted to the given user for this node ref?- Specified by:
hasAuthorityin interfaceDynamicAuthority- Parameters:
nodeRef- NodeRefuserName- String- Returns:
- true if the current user has the authority
-
getAuthority
Description copied from interface:DynamicAuthorityIf this authority is granted this method provides the string representation of the granted authority.- Specified by:
getAuthorityin interfaceDynamicAuthority- Returns:
- the authority taht may be assigned
-
onBootstrap
protected void onBootstrap(org.springframework.context.ApplicationEvent event) - Specified by:
onBootstrapin classorg.springframework.extensions.surf.util.AbstractLifecycleBean
-
onShutdown
protected void onShutdown(org.springframework.context.ApplicationEvent event) No-op- Specified by:
onShutdownin classorg.springframework.extensions.surf.util.AbstractLifecycleBean
-
setLockService
Set the lock service -
setCheckOutCheckInService
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
Set the permissions model dao -
setRequiredFor
Set the permissions for which this dynamic authority is required -
requiredFor
Description copied from interface:DynamicAuthorityFor what permission checks is this dynamic authority required? If null, it is required for all checks.- Specified by:
requiredForin interfaceDynamicAuthority- Returns:
- the set of permissions for which this dynamic authority should be evaluated
-