All Implemented Interfaces:
Serializable, XMLModelInitialisable, PermissionReference

public class Permission extends AbstractPermission implements XMLModelInitialisable
Support to read and store the definition of a permission.
Author:
andyh
See Also:
  • Constructor Details

    • Permission

      public Permission(QName typeQName)
      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:
      initialise in interface XMLModelInitialisable
      Overrides:
      initialise in class AbstractPermission
    • getDefaultPermission

      public AccessStatus getDefaultPermission()
      Default deny/allow for this permission
      Returns:
      the access status
    • getGrantedToGroups

      public 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.