Class Permissions
- java.lang.Object
 - 
- com.adobe.cq.sites.ui.models.admin.security.permission.Permissions
 
 
- 
@Model(adaptables=SlingHttpServletRequest.class) public final class Permissions extends java.lang.Object
Representation of aPrincipaland its allowed actions. This class is suitable for administering the permissions ofPrincipals 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 Constructor Description Permissions() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanCreate()Can thePrincipalcreate child resources of the given resourcebooleancanDelete()Can thePrincipaldelete the given resourcebooleancanEditAcl()Does the actual user have rights to edit the given resourcebooleancanModify()Can thePrincipalmodify the given resourcebooleancanRead()Can thePrincipalread the given resourcebooleancanReplicate()Can thePrincipalreplicate the given resourcejava.lang.StringgetAclData()Returns the current acl data as a Json Stringjava.lang.StringgetLabel()Returns the human readable label for thePrincipalvia itsAuthorizable- if availablejava.lang.StringgetPath()Returns the path of the component 
 - 
 
- 
- 
Method Detail
- 
getAclData
public java.lang.String getAclData() throws JSONExceptionReturns the current acl data as a Json String- Returns:
 - Throws:
 JSONException
 
- 
getPath
public java.lang.String getPath()
Returns the path of the component- Returns:
 
 
- 
getLabel
public java.lang.String 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:
 
 
 - 
 
 -