public final class SimplePermissionEntry extends AbstractPermissionEntry
Constructor and Description |
---|
SimplePermissionEntry(org.alfresco.service.cmr.repository.NodeRef nodeRef,
PermissionReference permissionReference,
String authority,
org.alfresco.service.cmr.security.AccessStatus accessStatus) |
SimplePermissionEntry(org.alfresco.service.cmr.repository.NodeRef nodeRef,
PermissionReference permissionReference,
String authority,
org.alfresco.service.cmr.security.AccessStatus accessStatus,
int position) |
Modifier and Type | Method and Description |
---|---|
org.alfresco.service.cmr.security.AccessStatus |
getAccessStatus()
Get the Access enum value
|
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)
|
boolean |
isAllowed()
Is permission allowed?
|
boolean |
isDenied()
Is permissions denied?
|
boolean |
isInherited()
Is this permission inherited?
|
equals, hashCode, toString
public SimplePermissionEntry(org.alfresco.service.cmr.repository.NodeRef nodeRef, PermissionReference permissionReference, String authority, org.alfresco.service.cmr.security.AccessStatus accessStatus)
public SimplePermissionEntry(org.alfresco.service.cmr.repository.NodeRef nodeRef, PermissionReference permissionReference, String authority, org.alfresco.service.cmr.security.AccessStatus accessStatus, int position)
public PermissionReference getPermissionReference()
PermissionEntry
public String getAuthority()
PermissionEntry
public org.alfresco.service.cmr.repository.NodeRef getNodeRef()
PermissionEntry
public boolean isDenied()
PermissionEntry
public boolean isAllowed()
PermissionEntry
public org.alfresco.service.cmr.security.AccessStatus getAccessStatus()
PermissionEntry
public int getPosition()
PermissionEntry
public boolean isInherited()
PermissionEntry
Copyright © 2005–2017 Alfresco Software. All rights reserved.