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

java.lang.Object
  extended by org.alfresco.repo.security.permissions.impl.AbstractPermissionReference
      extended by org.alfresco.repo.security.permissions.impl.model.AbstractPermission
All Implemented Interfaces:
java.io.Serializable, XMLModelInitialisable, PermissionReference
Direct Known Subclasses:
DynamicPermission, Permission

public abstract class AbstractPermission
extends AbstractPermissionReference
implements XMLModelInitialisable

Support to read and store common properties for permissions

See Also:
Serialized Form

Constructor Summary
protected AbstractPermission(org.alfresco.service.namespace.QName typeQName)
           
 
Method Summary
 java.lang.String getName()
          Get the name of the permission
 org.alfresco.service.namespace.QName getQName()
          Get the QName of the type or aspect against which the permission is defined.
 java.util.Set getRequiredPermissions()
          Get the required permissions
 org.alfresco.service.namespace.QName getTypeQName()
          Get the type for this permission
 void initialise(org.dom4j.Element element, org.alfresco.service.namespace.NamespacePrefixResolver nspr, PermissionModel permissionModel)
           
 
Methods inherited from class org.alfresco.repo.security.permissions.impl.AbstractPermissionReference
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractPermission

protected AbstractPermission(org.alfresco.service.namespace.QName typeQName)
Method Detail

initialise

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

getName

public final java.lang.String getName()
Description copied from interface: PermissionReference
Get the name of the permission

Specified by:
getName in interface PermissionReference
Returns:
the name

getRequiredPermissions

public final java.util.Set getRequiredPermissions()
Get the required permissions

Returns:
the required permissions

getTypeQName

public final org.alfresco.service.namespace.QName getTypeQName()
Get the type for this permission

Returns:
the type

getQName

public final org.alfresco.service.namespace.QName getQName()
Description copied from interface: PermissionReference
Get the QName of the type or aspect against which the permission is defined.

Specified by:
getQName in interface PermissionReference
Returns:
the qname


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