@Model(adaptables=SlingHttpServletRequest.class) public final class Permissions extends java.lang.Object
Principal
and its allowed actions. This class is suitable for administering the permissions of Principal
s
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 objectConstructor and Description |
---|
Permissions() |
Modifier and Type | Method and Description |
---|---|
boolean |
canCreate()
Can the
Principal create child resources of the given resource |
boolean |
canDelete()
Can the
Principal delete the given resource |
boolean |
canEditAcl()
Does the actual user have rights to edit the given resource
|
boolean |
canModify()
Can the
Principal modify the given resource |
boolean |
canRead()
Can the
Principal read the given resource |
boolean |
canReplicate()
Can the
Principal replicate the given resource |
java.lang.String |
getAclData()
Returns the current acl data as a Json String
|
java.lang.String |
getLabel()
Returns the human readable label for the
Principal via its Authorizable - if available |
public java.lang.String getAclData() throws JSONException
JSONException
public java.lang.String getLabel()
Principal
via its Authorizable
- if availablepublic boolean canEditAcl()
public boolean canRead()
Principal
read the given resourcepublic boolean canModify()
Principal
modify the given resourcepublic boolean canDelete()
Principal
delete the given resourcepublic boolean canReplicate()
Principal
replicate the given resourcepublic boolean canCreate()
Principal
create child resources of the given resource"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"