Class Permissions
java.lang.Object
com.adobe.cq.sites.ui.models.admin.security.permission.Permissions
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCan thePrincipalcreate child resources of the given resourcebooleanCan thePrincipaldelete the given resourcebooleanDoes the actual user have rights to edit the given resourcebooleanCan thePrincipalmodify the given resourcebooleancanRead()Can thePrincipalread the given resourcebooleanCan thePrincipalreplicate the given resourceReturns the current acl data as a Json StringgetLabel()Returns the human readable label for thePrincipalvia itsAuthorizable- if availablegetPath()Returns the path of the component
-
Constructor Details
-
Permissions
public Permissions()
-
-
Method Details
-
getAclData
Returns the current acl data as a Json String- Returns:
- Throws:
JSONException
-
getPath
Returns the path of the component- Returns:
-
getLabel
Returns the human readable label for thePrincipalvia itsAuthorizable- if available- Returns:
-
canEditAcl
public boolean canEditAcl()Does the actual user have rights to edit the given resource- Returns:
-
canRead
public boolean canRead()Can thePrincipalread the given resource- Returns:
-
canModify
public boolean canModify()Can thePrincipalmodify the given resource- Returns:
-
canDelete
public boolean canDelete()Can thePrincipaldelete the given resource- Returns:
-
canReplicate
public boolean canReplicate()Can thePrincipalreplicate the given resource- Returns:
-
canCreate
public boolean canCreate()Can thePrincipalcreate child resources of the given resource- Returns:
-