Class Permission
java.lang.Object
org.alfresco.repo.security.permissions.impl.AbstractPermissionReference
org.alfresco.repo.security.permissions.impl.model.AbstractPermission
org.alfresco.repo.security.permissions.impl.model.Permission
- All Implemented Interfaces:
Serializable,XMLModelInitialisable,PermissionReference
Support to read and store the definition of a permission.
- Author:
- andyh
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDefault deny/allow for this permissionGet the groups for which this permission is granted (by definition - filled in by the model API)voidinitialise(org.dom4j.Element element, NamespacePrefixResolver nspr, PermissionModel permissionModel) booleanShould this permission be shown to the UI?booleanDoes a node have to have the type/aspect for the permission to apply?Methods inherited from class org.alfresco.repo.security.permissions.impl.model.AbstractPermission
getName, getQName, getRequiredPermissions, getTypeQNameMethods inherited from class org.alfresco.repo.security.permissions.impl.AbstractPermissionReference
equals, hashCode, toString
-
Constructor Details
-
Permission
A permission for the given type- Parameters:
typeQName- QName
-
-
Method Details
-
initialise
public void initialise(org.dom4j.Element element, NamespacePrefixResolver nspr, PermissionModel permissionModel) - Specified by:
initialisein interfaceXMLModelInitialisable- Overrides:
initialisein classAbstractPermission
-
getDefaultPermission
Default deny/allow for this permission- Returns:
- the access status
-
getGrantedToGroups
Get the groups for which this permission is granted (by definition - filled in by the model API)- Returns:
- the specifed groups
-
isExposed
public boolean isExposed()Should this permission be shown to the UI?- Returns:
- return true if the permission be shown in the UI.
-
isTypeRequired
public boolean isTypeRequired()Does a node have to have the type/aspect for the permission to apply?- Returns:
- true if a node must have the type/aspect for the permission to apply.
-