Class AbstractPermission
java.lang.Object
org.alfresco.repo.security.permissions.impl.AbstractPermissionReference
org.alfresco.repo.security.permissions.impl.model.AbstractPermission
- All Implemented Interfaces:
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
- Author:
- andyh
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StringgetName()Get the name of the permissionfinal QNamegetQName()Get the QName of the type or aspect against which the permission is defined.final Set<RequiredPermission>Get the required permissionsfinal QNameGet the type for this permissionvoidinitialise(org.dom4j.Element element, NamespacePrefixResolver nspr, PermissionModel permissionModel) Methods inherited from class org.alfresco.repo.security.permissions.impl.AbstractPermissionReference
equals, hashCode, toString
-
Constructor Details
-
AbstractPermission
-
-
Method Details
-
initialise
public void initialise(org.dom4j.Element element, NamespacePrefixResolver nspr, PermissionModel permissionModel) - Specified by:
initialisein interfaceXMLModelInitialisable
-
getName
Description copied from interface:PermissionReferenceGet the name of the permission- Specified by:
getNamein interfacePermissionReference- Returns:
- the name
-
getRequiredPermissions
Get the required permissions- Returns:
- the required permissions
-
getTypeQName
Get the type for this permission- Returns:
- the type
-
getQName
Description copied from interface:PermissionReferenceGet the QName of the type or aspect against which the permission is defined.- Specified by:
getQNamein interfacePermissionReference- Returns:
- the qname
-