org.alfresco.service.cmr.security
Interface AccessPermission


public interface AccessPermission

The interface used to support reporting back if permissions are allowed or denied.


Method Summary
 AccessStatus getAccessStatus()
          Get the Access enumeration value
 java.lang.String getAuthority()
          Get the authority to which this permission applies.
 AuthorityType getAuthorityType()
          Get the type of authority to which this permission applies.
 java.lang.String getPermission()
          The permission.
 int getPosition()
          At what position in the inheritance chain for permissions is this permission set? = 0 -> Set direct on the object.
 boolean isInherited()
          Is this an inherited permission entry?
 boolean isSetDirectly()
          Is this permission set on the object?
 

Method Detail

getPermission

java.lang.String getPermission()
The permission.

Returns:

getAccessStatus

AccessStatus getAccessStatus()
Get the Access enumeration value

Returns:

getAuthority

java.lang.String getAuthority()
Get the authority to which this permission applies.

Returns:

getAuthorityType

AuthorityType getAuthorityType()
Get the type of authority to which this permission applies.

Returns:

getPosition

int getPosition()
At what position in the inheritance chain for permissions is this permission set? = 0 -> Set direct on the object. > 0 -> Inherited < 0 -> We don't know and are using this object for reporting (e.g. the actual permissions that apply to a node for the current user)

Returns:

isInherited

boolean isInherited()
Is this an inherited permission entry?

Returns:

isSetDirectly

boolean isSetDirectly()
Is this permission set on the object?

Returns:


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