public class OwnerDynamicAuthority extends Object implements DynamicAuthority, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
OwnerDynamicAuthority()
Standard construction
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
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?
|
Set<PermissionReference> |
requiredFor()
For what permission checks is this dynamic authority required?
If null, it is required for all checks.
|
void |
setOwnableService(OwnableService ownableService)
Set the ownable service
|
public void setOwnableService(OwnableService ownableService)
ownableService
- OwnableServicepublic void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
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
public Set<PermissionReference> requiredFor()
DynamicAuthority
requiredFor
in interface DynamicAuthority
Copyright © 2005–2017 Alfresco Software. All rights reserved.