java.lang.Object
com.adobe.cq.sites.ui.models.admin.security.permission.Permissions

@Model(adaptables=SlingHttpServletRequest.class) public final class Permissions extends Object
Representation of a Principal and its allowed actions. This class is suitable for administering the permissions of Principals The permissions are associated with the resource provided via the item request parameter. We are not displaying the data of the current resource but from a given resource It also provides a Json representation of the current permissions object
  • Constructor Details

    • Permissions

      public Permissions()
  • Method Details

    • getAclData

      public String getAclData() throws JSONException
      Returns the current acl data as a Json String
      Returns:
      Throws:
      JSONException
    • getPath

      public String getPath()
      Returns the path of the component
      Returns:
    • getLabel

      public String getLabel()
      Returns the human readable label for the Principal via its Authorizable - if available
      Returns:
    • canEditAcl

      public boolean canEditAcl()
      Does the actual user have rights to edit the given resource
      Returns:
    • canRead

      public boolean canRead()
      Can the Principal read the given resource
      Returns:
    • canModify

      public boolean canModify()
      Can the Principal modify the given resource
      Returns:
    • canDelete

      public boolean canDelete()
      Can the Principal delete the given resource
      Returns:
    • canReplicate

      public boolean canReplicate()
      Can the Principal replicate the given resource
      Returns:
    • canCreate

      public boolean canCreate()
      Can the Principal create child resources of the given resource
      Returns: