public class LockOwnerDynamicAuthority extends org.springframework.extensions.surf.util.AbstractLifecycleBean implements DynamicAuthority
Constructor and Description |
---|
LockOwnerDynamicAuthority() |
Modifier and Type | Method and Description |
---|---|
String |
getAuthority()
If this authority is granted this method provides the string
representation of the granted authority.
|
boolean |
hasAuthority(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String userName)
Is this authority granted to the given user for this node ref?
|
protected void |
onBootstrap(org.springframework.context.ApplicationEvent event) |
protected void |
onShutdown(org.springframework.context.ApplicationEvent event)
No-op
|
Set<PermissionReference> |
requiredFor()
For what permission checks is this dynamic authority required?
If null, it is required for all checks.
|
void |
setCheckOutCheckInService(CheckOutCheckInService checkOutCheckInService)
Service to get the check-in details.
|
void |
setLockService(LockService lockService)
Set the lock service
|
void |
setModelDAO(ModelDAO modelDAO)
Set the permissions model dao
|
void |
setRequiredFor(List<String> requiredFor)
Set the permissions for which this dynamic authority is required
|
public boolean hasAuthority(org.alfresco.service.cmr.repository.NodeRef nodeRef, String userName)
DynamicAuthority
hasAuthority
in interface DynamicAuthority
nodeRef
- NodeRefuserName
- Stringpublic String getAuthority()
DynamicAuthority
getAuthority
in interface DynamicAuthority
protected void onBootstrap(org.springframework.context.ApplicationEvent event)
onBootstrap
in class org.springframework.extensions.surf.util.AbstractLifecycleBean
protected void onShutdown(org.springframework.context.ApplicationEvent event)
onShutdown
in class org.springframework.extensions.surf.util.AbstractLifecycleBean
public void setLockService(LockService lockService)
public void setCheckOutCheckInService(CheckOutCheckInService checkOutCheckInService)
public void setModelDAO(ModelDAO modelDAO)
public void setRequiredFor(List<String> requiredFor)
public Set<PermissionReference> requiredFor()
DynamicAuthority
requiredFor
in interface DynamicAuthority
Copyright © 2005–2017 Alfresco Software. All rights reserved.