Class ExtendedCQPermissions
- java.lang.Object
-
- com.adobe.cq.testing.client.security.Permissions
-
- com.adobe.cq.testing.client.security.CQPermissions
-
- com.adobe.cq.testing.client.security.ExtendedCQPermissions
-
public class ExtendedCQPermissions extends CQPermissions
-
-
Field Summary
-
Fields inherited from class com.adobe.cq.testing.client.security.Permissions
client
-
-
Constructor Summary
Constructors Constructor Description ExtendedCQPermissions(T client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode
changePermissionsWithRetry(PermissionConfig config, long timeout, long delay, int... expectedStatus)
Changes permissions for an authorizable with retry in case an exception is thrown.com.fasterxml.jackson.databind.JsonNode
getPermissionsWithRetry(String authorizableId, String path, int depth, long timeout, long delay, int... expectedStatus)
Get permissions for an authorizable with retry in case an exception is thrown.* The operation is retried until successful, or until the {timeout} is reached-
Methods inherited from class com.adobe.cq.testing.client.security.CQPermissions
changePermissions, getPermissions
-
-
-
-
Method Detail
-
changePermissionsWithRetry
public com.fasterxml.jackson.databind.JsonNode changePermissionsWithRetry(PermissionConfig config, long timeout, long delay, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException, InterruptedException
Changes permissions for an authorizable with retry in case an exception is thrown. The operation is retried until successful, or until the {timeout} is reached- Parameters:
config
- The PermissionConfig to be usedtimeout
- the timeout for retries, in millisecondsdelay
- the delay between retries, in millisecondsexpectedStatus
- list of allowed HTTP statuses 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 the request/response cycle after timeout was reachedInterruptedException
- on interrupt
-
getPermissionsWithRetry
public com.fasterxml.jackson.databind.JsonNode getPermissionsWithRetry(String authorizableId, String path, int depth, long timeout, long delay, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException, InterruptedException
Get permissions for an authorizable with retry in case an exception is thrown.* The operation is retried until successful, or until the {timeout} is reached- Parameters:
authorizableId
- the Id of the authorizablepath
- pathdepth
- depthtimeout
- the timeout for retries, in millisecondsdelay
- the delay between retries, in millisecondsexpectedStatus
- list of allowed HTTP statuses 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 after timeout was reachedInterruptedException
- on interrupt
-
-