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:
java.io.Serializable,XMLModelInitialisable,PermissionReference
public class Permission extends AbstractPermission implements XMLModelInitialisable
Support to read and store the definition of a permission.- Author:
- andyh
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Permission(org.alfresco.service.namespace.QName typeQName)A permission for the given type
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.alfresco.service.cmr.security.AccessStatusgetDefaultPermission()Default deny/allow for this permissionjava.util.Set<PermissionReference>getGrantedToGroups()Get the groups for which this permission is granted (by definition - filled in by the model API)voidinitialise(org.dom4j.Element element, org.alfresco.service.namespace.NamespacePrefixResolver nspr, PermissionModel permissionModel)booleanisExposed()Should this permission be shown to the UI?booleanisTypeRequired()Does 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, getTypeQName
-
Methods inherited from class org.alfresco.repo.security.permissions.impl.AbstractPermissionReference
equals, hashCode, toString
-
-
-
-
Method Detail
-
initialise
public void initialise(org.dom4j.Element element, org.alfresco.service.namespace.NamespacePrefixResolver nspr, PermissionModel permissionModel)- Specified by:
initialisein interfaceXMLModelInitialisable- Overrides:
initialisein classAbstractPermission
-
getDefaultPermission
public org.alfresco.service.cmr.security.AccessStatus getDefaultPermission()
Default deny/allow for this permission- Returns:
- the access status
-
getGrantedToGroups
public java.util.Set<PermissionReference> 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.
-
-