Class CQPreferences
java.lang.Object
com.adobe.cq.testing.client.security.CQPreferences
http://qabase.day.com/cf#/content/qabase/testcases/cq/setting_user_andgrouppreferencesdocumentation.html
-
Field Summary
Modifier and TypeFieldDescriptionprotected Authorizable
Group / Userprotected SecurityClient
static final String
static final String
static final String
static final String
protected String
path toAuthorizable
s' referencesstatic final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
getJson
(int... expectedStatus) Get json representation of the preferencesGet language settings ofAuthorizable
getPath()
Get path toAuthorizable
s' referencesorg.apache.sling.testing.clients.SlingHttpResponse
setLanguage
(String language) Set language - if language is not given, default is set to "en"
-
Field Details
-
PREFERENCES_NODE
- See Also:
-
SELECTOR
- See Also:
-
LANGUAGE_PROPERTY
- See Also:
-
LANGUAGE_EN
- See Also:
-
LANGUAGE_DE
- See Also:
-
LANGUAGE_FR
- See Also:
-
client
-
authorizable
Group / User -
path
path toAuthorizable
s' references
-
-
Constructor Details
-
CQPreferences
public CQPreferences(Authorizable authorizable) throws org.apache.sling.testing.clients.ClientException - Throws:
org.apache.sling.testing.clients.ClientException
-
-
Method Details
-
getClient
-
getAuthorizable
-
getPath
Get path toAuthorizable
s' references- Returns:
- path
- Throws:
org.apache.sling.testing.clients.ClientException
- if the request fails
-
getJson
public com.fasterxml.jackson.databind.JsonNode getJson(int... expectedStatus) throws org.apache.sling.testing.clients.ClientException Get json representation of the preferences- Parameters:
expectedStatus
- list of expected http status codes- Returns:
- preferences as
JsonNode
- Throws:
org.apache.sling.testing.clients.ClientException
- if the request fails
-
getLanguage
Get language settings ofAuthorizable
- Returns:
- language
- Throws:
org.apache.sling.testing.clients.ClientException
- if the request fails
-
setLanguage
public org.apache.sling.testing.clients.SlingHttpResponse setLanguage(String language) throws org.apache.sling.testing.clients.ClientException Set language - if language is not given, default is set to "en"- Parameters:
language
- language to set- Returns:
- Sling response
- Throws:
org.apache.sling.testing.clients.ClientException
- if the request fails
-