Class PermissionGroup
- java.lang.Object
-
- org.alfresco.repo.security.permissions.impl.AbstractPermissionReference
-
- org.alfresco.repo.security.permissions.impl.model.PermissionGroup
-
- All Implemented Interfaces:
Serializable,XMLModelInitialisable,PermissionReference
public final class PermissionGroup extends AbstractPermissionReference implements XMLModelInitialisable
Support to read and store the defintion of permission groups.- Author:
- andyh
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PermissionGroup(QName container)Permission group for the given type or aspect.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<PermissionReference>getIncludedPermissionGroups()What permission groups are included in this one (for ease of definition)StringgetName()Get the name of the permissionQNamegetQName()Get the QName of the type or aspect against which the permission is defined.QNamegetTypeQName()Get the classvoidinitialise(org.dom4j.Element element, NamespacePrefixResolver nspr, PermissionModel permissionModel)booleanisAllowFullControl()Does this permission group allow full control?booleanisExposed()Expose in the UI?booleanisExtends()Does this definition extend another (from a base type as defined in the DD)booleanisTypeRequired()Does a node have to have a the type for the permission to apply?-
Methods inherited from class org.alfresco.repo.security.permissions.impl.AbstractPermissionReference
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
PermissionGroup
public PermissionGroup(QName container)
Permission group for the given type or aspect.- Parameters:
container- QName
-
-
Method Detail
-
initialise
public void initialise(org.dom4j.Element element, NamespacePrefixResolver nspr, PermissionModel permissionModel)- Specified by:
initialisein interfaceXMLModelInitialisable
-
getIncludedPermissionGroups
public Set<PermissionReference> getIncludedPermissionGroups()
What permission groups are included in this one (for ease of definition)- Returns:
- - the set of included permission from teh definitio
-
getName
public String getName()
Description copied from interface:PermissionReferenceGet the name of the permission- Specified by:
getNamein interfacePermissionReference- Returns:
- the name
-
isAllowFullControl
public boolean isAllowFullControl()
Does this permission group allow full control?- Returns:
- true if this definition allows full control
-
getQName
public QName 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
-
isExtends
public boolean isExtends()
Does this definition extend another (from a base type as defined in the DD)- Returns:
- true if the permission is extended from another type
-
getTypeQName
public QName getTypeQName()
Get the class- Returns:
- - the class
-
isExposed
public boolean isExposed()
Expose in the UI?- Returns:
- exposed -> true
-
isTypeRequired
public boolean isTypeRequired()
Does a node have to have a the type for the permission to apply?- Returns:
- true if a node has to have the type for the permission to apply.
-
-