public class ModelPermissionEntry extends java.lang.Object implements PermissionEntry, XMLModelInitialisable
| Constructor and Description |
|---|
ModelPermissionEntry(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Create a permission model entry with the given node context
|
| Modifier and Type | Method and Description |
|---|---|
org.alfresco.service.cmr.security.AccessStatus |
getAccessStatus()
Get the Access enum value
|
java.lang.String |
getAuthority()
Get the authority to which this entry applies This could be the string
value of a username, group, role or any other authority assigned to the
authorisation.
|
org.alfresco.service.cmr.repository.NodeRef |
getNodeRef()
Get the node ref for the node to which this permission applies.
|
PermissionReference |
getPermissionReference()
Get the permission definition.
|
int |
getPosition()
Return the position in the inhertance chain (0 is not inherited and set on the object)
|
java.lang.String |
getRecipient()
Synonym for authority
|
void |
initialise(org.dom4j.Element element,
org.alfresco.service.namespace.NamespacePrefixResolver nspr,
PermissionModel permissionModel) |
boolean |
isAllowed()
Is permission allowed?
|
boolean |
isDenied()
Is permissions denied?
|
boolean |
isInherited()
Is this permission inherited?
|
public ModelPermissionEntry(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef - (may be null)public PermissionReference getPermissionReference()
PermissionEntrygetPermissionReference in interface PermissionEntrypublic java.lang.String getAuthority()
PermissionEntrygetAuthority in interface PermissionEntrypublic java.lang.String getRecipient()
public org.alfresco.service.cmr.repository.NodeRef getNodeRef()
PermissionEntrygetNodeRef in interface PermissionEntrypublic boolean isDenied()
PermissionEntryisDenied in interface PermissionEntrypublic boolean isAllowed()
PermissionEntryisAllowed in interface PermissionEntrypublic org.alfresco.service.cmr.security.AccessStatus getAccessStatus()
PermissionEntrygetAccessStatus in interface PermissionEntrypublic void initialise(org.dom4j.Element element,
org.alfresco.service.namespace.NamespacePrefixResolver nspr,
PermissionModel permissionModel)
initialise in interface XMLModelInitialisablepublic int getPosition()
PermissionEntrygetPosition in interface PermissionEntrypublic boolean isInherited()
PermissionEntryisInherited in interface PermissionEntryCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.