org.alfresco.repo.security.permissions.impl.model
Class GlobalPermissionEntry

java.lang.Object
  extended by org.alfresco.repo.security.permissions.impl.model.GlobalPermissionEntry
All Implemented Interfaces:
XMLModelInitialisable, PermissionEntry

public class GlobalPermissionEntry
extends java.lang.Object
implements XMLModelInitialisable, PermissionEntry


Constructor Summary
GlobalPermissionEntry()
           
 
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)
 void initialise(org.dom4j.Element element, org.alfresco.service.namespace.NamespacePrefixResolver nspr, PermissionModel permissionModel)
           
 boolean isAllowed()
          Is permission allowed?
 boolean isDenied()
          Is permissions denied?
 boolean isInherited()
          Is this permission inherited?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalPermissionEntry

public GlobalPermissionEntry()
Method Detail

initialise

public void initialise(org.dom4j.Element element,
                       org.alfresco.service.namespace.NamespacePrefixResolver nspr,
                       PermissionModel permissionModel)
Specified by:
initialise in interface XMLModelInitialisable

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.

Specified by:
getAuthority in interface PermissionEntry
Returns:

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

Specified by:
getPermissionReference in interface PermissionEntry
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

Specified by:
getNodeRef in interface PermissionEntry
Returns:

isDenied

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

Specified by:
isDenied in interface PermissionEntry

isAllowed

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

Specified by:
isAllowed in interface PermissionEntry

getAccessStatus

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

Specified by:
getAccessStatus in interface PermissionEntry
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)

Specified by:
getPosition in interface PermissionEntry
Returns:

isInherited

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

Specified by:
isInherited in interface PermissionEntry
Returns:


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