Class SimplePermissionEntry
- java.lang.Object
-
- org.alfresco.repo.security.permissions.impl.AbstractPermissionEntry
-
- org.alfresco.repo.security.permissions.impl.SimplePermissionEntry
-
- All Implemented Interfaces:
PermissionEntry
public final class SimplePermissionEntry extends AbstractPermissionEntry
A simple object representation of a permission entry.- Author:
- andyh
-
-
Constructor Summary
Constructors Constructor Description SimplePermissionEntry(NodeRef nodeRef, PermissionReference permissionReference, String authority, AccessStatus accessStatus)SimplePermissionEntry(NodeRef nodeRef, PermissionReference permissionReference, String authority, AccessStatus accessStatus, int position)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessStatusgetAccessStatus()Get the Access enum valueStringgetAuthority()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.NodeRefgetNodeRef()Get the node ref for the node to which this permission applies.PermissionReferencegetPermissionReference()Get the permission definition.intgetPosition()Return the position in the inhertance chain (0 is not inherited and set on the object)booleanisAllowed()Is permission allowed?booleanisDenied()Is permissions denied?booleanisInherited()Is this permission inherited?-
Methods inherited from class org.alfresco.repo.security.permissions.impl.AbstractPermissionEntry
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
SimplePermissionEntry
public SimplePermissionEntry(NodeRef nodeRef, PermissionReference permissionReference, String authority, AccessStatus accessStatus)
-
SimplePermissionEntry
public SimplePermissionEntry(NodeRef nodeRef, PermissionReference permissionReference, String authority, AccessStatus accessStatus, int position)
-
-
Method Detail
-
getPermissionReference
public PermissionReference getPermissionReference()
Description copied from interface:PermissionEntryGet the permission definition. This may be null. Null implies that the settings apply to all permissions- Returns:
- PermissionReference
-
getAuthority
public String getAuthority()
Description copied from interface:PermissionEntryGet 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. If null then this applies to all.- Returns:
- String
-
getNodeRef
public NodeRef getNodeRef()
Description copied from interface:PermissionEntryGet the node ref for the node to which this permission applies. This can only be null for a global permission- Returns:
- NodeRef
-
isDenied
public boolean isDenied()
Description copied from interface:PermissionEntryIs permissions denied?
-
isAllowed
public boolean isAllowed()
Description copied from interface:PermissionEntryIs permission allowed?
-
getAccessStatus
public AccessStatus getAccessStatus()
Description copied from interface:PermissionEntryGet the Access enum value- Returns:
- AccessStatus
-
getPosition
public int getPosition()
Description copied from interface:PermissionEntryReturn the position in the inhertance chain (0 is not inherited and set on the object)- Returns:
- int
-
isInherited
public boolean isInherited()
Description copied from interface:PermissionEntryIs this permission inherited?- Returns:
- boolean
-
-