org.alfresco.repo.security.permissions.impl
Class AccessPermissionImpl

java.lang.Object
  extended by org.alfresco.repo.security.permissions.impl.AccessPermissionImpl
All Implemented Interfaces:
AccessPermission

public class AccessPermissionImpl
extends java.lang.Object
implements AccessPermission

Standard implementation for access permission info


Constructor Summary
AccessPermissionImpl(java.lang.String permission, AccessStatus accessStatus, java.lang.String authority, int position)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 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.
 int hashCode()
           
 boolean isInherited()
          Is this an inherited permission entry?
 boolean isSetDirectly()
          Is this permission set on the object?
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AccessPermissionImpl

public AccessPermissionImpl(java.lang.String permission,
                            AccessStatus accessStatus,
                            java.lang.String authority,
                            int position)
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:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

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.