|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.security.permissions.impl.model.ModelPermissionEntry
public class ModelPermissionEntry
Support to read and store the definion of a permission entry.
| Constructor Summary | |
|---|---|
ModelPermissionEntry(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Create a permission model entry with the given node context |
|
| Method Summary | |
|---|---|
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? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModelPermissionEntry(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef - (may be null)| Method Detail |
|---|
public PermissionReference getPermissionReference()
PermissionEntry
getPermissionReference in interface PermissionEntrypublic java.lang.String getAuthority()
PermissionEntry
getAuthority in interface PermissionEntrypublic java.lang.String getRecipient()
public org.alfresco.service.cmr.repository.NodeRef getNodeRef()
PermissionEntry
getNodeRef in interface PermissionEntrypublic boolean isDenied()
PermissionEntry
isDenied in interface PermissionEntrypublic boolean isAllowed()
PermissionEntry
isAllowed in interface PermissionEntrypublic org.alfresco.service.cmr.security.AccessStatus getAccessStatus()
PermissionEntry
getAccessStatus in interface PermissionEntry
public void initialise(org.dom4j.Element element,
org.alfresco.service.namespace.NamespacePrefixResolver nspr,
PermissionModel permissionModel)
initialise in interface XMLModelInitialisablepublic int getPosition()
PermissionEntry
getPosition in interface PermissionEntrypublic boolean isInherited()
PermissionEntry
isInherited in interface PermissionEntry
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||