Class CQPermissions
- java.lang.Object
-
- com.adobe.cq.testing.client.security.Permissions
-
- com.adobe.cq.testing.client.security.CQPermissions
-
public class CQPermissions extends Permissions
-
-
Field Summary
-
Fields inherited from class com.adobe.cq.testing.client.security.Permissions
client
-
-
Constructor Summary
Constructors Constructor Description CQPermissions(T client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNodechangePermissions(String authorizableId, String path, boolean read, boolean modify, boolean create, boolean delete, boolean acl_read, boolean acl_edit, boolean replicate, int... expectedStatus)Changes permissions for an authorizable.com.fasterxml.jackson.databind.JsonNodegetPermissions(String authorizableId, String path, int depth, int... expectedStatus)Get permissions for an authorizable.
-
-
-
Method Detail
-
changePermissions
public com.fasterxml.jackson.databind.JsonNode changePermissions(String authorizableId, String path, boolean read, boolean modify, boolean create, boolean delete, boolean acl_read, boolean acl_edit, boolean replicate, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
Changes permissions for an authorizable.- Parameters:
authorizableId- the authorizable idpath- pathread- read permissionmodify- modify permissioncreate- createGroup permissiondelete- delete permissionacl_read- read aclacl_edit- edit aclreplicate- replicationexpectedStatus- list of allowed HTTP Status to be returned. If not set, http status 200 (OK) is assumed.- Returns:
- Json node containing resulting permissions
- Throws:
org.apache.sling.testing.clients.ClientException- If something fails during request/response cycle
-
getPermissions
public com.fasterxml.jackson.databind.JsonNode getPermissions(String authorizableId, String path, int depth, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
Get permissions for an authorizable.- Parameters:
authorizableId- the Id of the authorizablepath- pathdepth- depthexpectedStatus- list of allowed HTTP Status to be returned. If not set, http status 200 (OK) is assumed.- Returns:
- the root
JsonNode - Throws:
org.apache.sling.testing.clients.ClientException- If something fails during request/response cycle
-
-