org.alfresco.repo.security.permissions
Interface PermissionEntry

All Known Implementing Classes:
AbstractPermissionEntry, GlobalPermissionEntry, ModelPermissionEntry, SimplePermissionEntry

public interface PermissionEntry

A single permission entry defined against a node.


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)
 boolean isAllowed()
          Is permission allowed?
 boolean isDenied()
          Is permissions denied?
 boolean isInherited()
          Is this permission inherited?
 

Method Detail

getPermissionReference

PermissionReference getPermissionReference()
Get the permission definition. This may be null. Null implies that the settings apply to all permissions

Returns:

getAuthority

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. If null then this applies to all.

Returns:

getNodeRef

org.alfresco.service.cmr.repository.NodeRef getNodeRef()
Get the node ref for the node to which this permission applies. This can only be null for a global permission

Returns:

isDenied

boolean isDenied()
Is permissions denied?


isAllowed

boolean isAllowed()
Is permission allowed?


getAccessStatus

org.alfresco.service.cmr.security.AccessStatus getAccessStatus()
Get the Access enum value

Returns:

isInherited

boolean isInherited()
Is this permission inherited?

Returns:

getPosition

int getPosition()
Return the position in the inhertance chain (0 is not inherited and set on the object)

Returns:


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.