org.alfresco.repo.importer.view
Class NodeContext.ACE

java.lang.Object
  extended by org.alfresco.repo.importer.view.NodeContext.ACE
All Implemented Interfaces:
AccessPermission
Enclosing class:
NodeContext

public static class NodeContext.ACE
extends java.lang.Object
implements AccessPermission

Access Control Entry


Constructor Summary
NodeContext.ACE(AccessStatus accessStatus, java.lang.String authority, java.lang.String permission)
           
 
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?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeContext.ACE

public NodeContext.ACE(AccessStatus accessStatus,
                       java.lang.String authority,
                       java.lang.String permission)
Method Detail

getPermission

public java.lang.String getPermission()
Description copied from interface: AccessPermission
The permission.

Specified by:
getPermission in interface AccessPermission
Returns:

getAccessStatus

public AccessStatus getAccessStatus()
Description copied from interface: AccessPermission
Get the Access enumeration value

Specified by:
getAccessStatus in interface AccessPermission
Returns:

getAuthority

public java.lang.String getAuthority()
Description copied from interface: AccessPermission
Get the authority to which this permission applies.

Specified by:
getAuthority in interface AccessPermission
Returns:

getAuthorityType

public AuthorityType getAuthorityType()
Description copied from interface: AccessPermission
Get the type of authority to which this permission applies.

Specified by:
getAuthorityType in interface AccessPermission
Returns:

getPosition

public int getPosition()
Description copied from interface: AccessPermission
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)

Specified by:
getPosition in interface AccessPermission
Returns:

isInherited

public boolean isInherited()
Description copied from interface: AccessPermission
Is this an inherited permission entry?

Specified by:
isInherited in interface AccessPermission
Returns:

isSetDirectly

public boolean isSetDirectly()
Description copied from interface: AccessPermission
Is this permission set on the object?

Specified by:
isSetDirectly in interface AccessPermission
Returns:


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