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

java.lang.Object
  extended by org.alfresco.repo.security.permissions.impl.AbstractPermissionEntry
      extended by org.alfresco.repo.security.permissions.impl.SimplePermissionEntry
All Implemented Interfaces:
PermissionEntry

public final class SimplePermissionEntry
extends AbstractPermissionEntry

A simple object representation of a permission entry.


Constructor Summary
SimplePermissionEntry(org.alfresco.service.cmr.repository.NodeRef nodeRef, PermissionReference permissionReference, java.lang.String authority, org.alfresco.service.cmr.security.AccessStatus accessStatus)
           
SimplePermissionEntry(org.alfresco.service.cmr.repository.NodeRef nodeRef, PermissionReference permissionReference, java.lang.String authority, org.alfresco.service.cmr.security.AccessStatus accessStatus, int position)
           
 
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?
 
Methods inherited from class org.alfresco.repo.security.permissions.impl.AbstractPermissionEntry
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimplePermissionEntry

public SimplePermissionEntry(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                             PermissionReference permissionReference,
                             java.lang.String authority,
                             org.alfresco.service.cmr.security.AccessStatus accessStatus)

SimplePermissionEntry

public SimplePermissionEntry(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                             PermissionReference permissionReference,
                             java.lang.String authority,
                             org.alfresco.service.cmr.security.AccessStatus accessStatus,
                             int position)
Method Detail

getPermissionReference

public PermissionReference getPermissionReference()
Description copied from interface: PermissionEntry
Get the permission definition. This may be null. Null implies that the settings apply to all permissions

Returns:

getAuthority

public java.lang.String getAuthority()
Description copied from interface: PermissionEntry
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

public org.alfresco.service.cmr.repository.NodeRef getNodeRef()
Description copied from interface: PermissionEntry
Get the node ref for the node to which this permission applies. This can only be null for a global permission

Returns:

isDenied

public boolean isDenied()
Description copied from interface: PermissionEntry
Is permissions denied?


isAllowed

public boolean isAllowed()
Description copied from interface: PermissionEntry
Is permission allowed?


getAccessStatus

public org.alfresco.service.cmr.security.AccessStatus getAccessStatus()
Description copied from interface: PermissionEntry
Get the Access enum value

Returns:

getPosition

public int getPosition()
Description copied from interface: PermissionEntry
Return the position in the inhertance chain (0 is not inherited and set on the object)

Returns:

isInherited

public boolean isInherited()
Description copied from interface: PermissionEntry
Is this permission inherited?

Returns:


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