public class LockOwnerDynamicAuthority extends org.springframework.extensions.surf.util.AbstractLifecycleBean implements DynamicAuthority
| Constructor and Description |
|---|
LockOwnerDynamicAuthority() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.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,
java.lang.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
|
java.util.Set |
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(java.util.List requiredFor)
Set the permissions for which this dynamic authority is required
|
public boolean hasAuthority(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.lang.String userName)
DynamicAuthorityhasAuthority in interface DynamicAuthoritypublic java.lang.String getAuthority()
DynamicAuthoritygetAuthority in interface DynamicAuthorityprotected void onBootstrap(org.springframework.context.ApplicationEvent event)
onBootstrap in class org.springframework.extensions.surf.util.AbstractLifecycleBeanprotected void onShutdown(org.springframework.context.ApplicationEvent event)
onShutdown in class org.springframework.extensions.surf.util.AbstractLifecycleBeanpublic void setLockService(LockService lockService)
public void setCheckOutCheckInService(CheckOutCheckInService checkOutCheckInService)
public void setModelDAO(ModelDAO modelDAO)
public void setRequiredFor(java.util.List requiredFor)
public java.util.Set requiredFor()
DynamicAuthorityrequiredFor in interface DynamicAuthorityCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.