public class CQPermissions extends Permissions
client
Constructor and Description |
---|
CQPermissions(T client) |
Modifier and Type | Method and Description |
---|---|
org.codehaus.jackson.JsonNode |
changePermissions(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.
|
org.codehaus.jackson.JsonNode |
getPermissions(String authorizableId,
String path,
int depth,
int... expectedStatus)
Get permissions for an authorizable.
|
public org.codehaus.jackson.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
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.org.apache.sling.testing.clients.ClientException
- If something fails during request/response cyclepublic org.codehaus.jackson.JsonNode getPermissions(String authorizableId, String path, int depth, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
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.JsonNode
org.apache.sling.testing.clients.ClientException
- If something fails during request/response cycleCopyright © 2018. All rights reserved.