public class MSMClient extends CQClient
CQClient which in turn provides a core set of
commonly used website and page functionality.CQClient.Builder, CQClient.InternalBuilder<T extends CQClient>| Modifier and Type | Field and Description |
|---|---|
static String |
BLUEPRINT_GET_EXTENSION |
static String |
BLUEPRINT_POST_EXTENSION
Blueprint rollout configuration
|
static String |
BLUEPRINT_ROOT
BluePrint location
|
static String |
JCR_CONTENT |
static String |
JCR_PRIMARYTYPE |
static String |
LIVECOPY_GET_EXTENSION |
static String |
LIVECOPY_POST_EXTENSION
LiveCopy configuration
|
static String |
PARAM_IS_DEEP |
static String |
PARAM_SOURCEPATH |
static String |
PN_ROLLOUT_CONFIGS |
static String |
PROPERTY_LASTROLLEDOUT
LiveCopy general properties
|
static String |
PROPERTY_LASTROLLEDOUTBY |
static String |
ROLLOUTCONFIG_ACTIVATE |
static String |
ROLLOUTCONFIG_DEACTIVATE |
static String |
ROLLOUTCONFIG_DEFAULT |
static String |
ROLLOUTCONFIG_PUSHONMODIFY |
LOG, STATISTICS_ROOT, wcmCommands| Constructor and Description |
|---|
MSMClient(org.apache.http.impl.client.CloseableHttpClient http,
org.apache.sling.testing.clients.SlingClientConfig config) |
MSMClient(URI serverUrl,
String user,
String password) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.sling.testing.clients.SlingHttpResponse |
createBluePrint(String name,
String title,
String sitePath,
int... expectedStatus)
Creates a blueprint.
|
org.apache.sling.testing.clients.SlingHttpResponse |
createLiveCopy(String label,
String title,
String destPath,
String srcPath,
boolean shallow,
String[] rolloutConfigs,
String[] missingPages,
boolean excludeSubPages,
int... expectedStatus)
Creates a live copy.
|
String |
createRolloutConfig(String name,
String above,
String trigger,
String... liveActions)
Create a new RolloutConfiguration with given Trigger and given LiveActions
|
org.apache.sling.testing.clients.SlingHttpResponse |
createSite(String label,
String title,
String destPath,
boolean isLiveCopy,
String[] languages,
String[] chapterPaths,
String blueprintPath,
String[] rolloutConfigs,
String siteOwner,
int... expectedStatus)
Creates an new site.
|
org.apache.sling.testing.clients.SlingHttpResponse |
deleteBluePrint(String blueprintPath,
int... expectedStatus)
Delete a blueprint.
|
org.apache.sling.testing.clients.SlingHttpResponse |
editRelationship(String target,
String sourcePath,
boolean deep,
String[] rolloutConfigs,
int... expectedStatus)
Edit the LiveRelationship at a given Path
|
copyLanguages, copyPage, createPage, createPageWithRetry, createVersion, deletePage, deletePageWithRetry, lockPage, movePage, movePage, resetPageStatistics, restoreTree, restoreVersion, rolloutPage, searchAndReplaceInPages, searchInPages, setPageProperties, setPageProperty, setPagePropertyImage, unlockPage, uploadAsset, uploadFileCQStylecreateFolder, createNode, createNodeRecursive, deletePath, doGetJson, exists, getJsonNode, getJsonNode, getNodeNameFromPath, getParentPath, getUUId, getUUID, importContent, importContent, importJson, move, setPropertiesString, setPropertyString, setPropertyStringArray, upload, waitExists, waitUntilExistsadaptTo, addValue, close, doDelete, doGet, doGet, doGet, doHead, doPatch, doPost, doPost, doPut, doRawRequest, doRequest, doStreamGet, doStreamPost, doStreamRequest, execute, execute, execute, execute, execute, execute, execute, execute, getClientId, getConnectionManager, getCookieStore, getCredentialsProvider, getParams, getPassword, getPath, getPath, getUrl, getUrl, getUrl, getUser, getValue, getValues, hasValuepublic static final String JCR_PRIMARYTYPE
public static final String JCR_CONTENT
public static final String PARAM_SOURCEPATH
public static final String PARAM_IS_DEEP
public static final String PN_ROLLOUT_CONFIGS
public static final String LIVECOPY_POST_EXTENSION
public static final String LIVECOPY_GET_EXTENSION
public static final String BLUEPRINT_POST_EXTENSION
public static final String BLUEPRINT_GET_EXTENSION
public static final String PROPERTY_LASTROLLEDOUT
public static final String PROPERTY_LASTROLLEDOUTBY
public static final String ROLLOUTCONFIG_DEFAULT
public static final String ROLLOUTCONFIG_ACTIVATE
public static final String ROLLOUTCONFIG_DEACTIVATE
public static final String ROLLOUTCONFIG_PUSHONMODIFY
public static final String BLUEPRINT_ROOT
public MSMClient(org.apache.http.impl.client.CloseableHttpClient http,
org.apache.sling.testing.clients.SlingClientConfig config)
throws org.apache.sling.testing.clients.ClientException
org.apache.sling.testing.clients.ClientExceptionpublic org.apache.sling.testing.clients.SlingHttpResponse createBluePrint(String name, String title, String sitePath, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
name - the label/name of the blueprinttitle - the title of the blueprintsitePath - the path to an existing branch (site)expectedStatus - 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.apache.sling.testing.clients.SlingHttpResponse deleteBluePrint(String blueprintPath, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
blueprintPath - the path to the blueprintexpectedStatus - 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.apache.sling.testing.clients.SlingHttpResponse createSite(String label, String title, String destPath, boolean isLiveCopy, String[] languages, String[] chapterPaths, String blueprintPath, String[] rolloutConfigs, String siteOwner, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
label - the label/name of the new sitetitle - the title of the new sitedestPath - the location where the new site gets createdisLiveCopy - true if the new site works as a live copylanguages - the languages labels to copychapterPaths - the chapters' pages to copy taken from first language of siteblueprintPath - the path to the blueprintrolloutConfigs - the rollout configuration for the live copysiteOwner - the site owner for the new siteexpectedStatus - 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.apache.sling.testing.clients.SlingHttpResponse createLiveCopy(String label, String title, String destPath, String srcPath, boolean shallow, String[] rolloutConfigs, String[] missingPages, boolean excludeSubPages, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
label - the label/name of the new sitetitle - the title of the new sitedestPath - the location where the new site gets createdsrcPath - the source path of the liveCopyshallow - if set to true subpages are excludedrolloutConfigs - the rollout configuration for the live copymissingPages - pages which are not rolled out yet (missing) but should be part of the rolloutexcludeSubPages - true if subpages of missing pages are excluded (subpages of missing pages are not par of
rollout)expectedStatus - 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.apache.sling.testing.clients.SlingHttpResponse editRelationship(String target, String sourcePath, boolean deep, String[] rolloutConfigs, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
target - the LiveCopy to editsourcePath - the blueprint pathdeep - if the LiveCopy is deeprolloutConfigs - the RolloutConfigs to take for LiveCopyexpectedStatus - 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 String createRolloutConfig(String name, String above, String trigger, String... liveActions) throws org.apache.sling.testing.clients.ClientException
name - to give for the RolloutConfigabove - optional, Page name the RolloutConfig to be next to the newtrigger - Trigger to be used for the RolloutConfigliveActions - names of the LiveActions to be contained in the RolloutConfig @return the Path to the newly created RolloutConfigorg.apache.sling.testing.clients.ClientException - in case of Errors during RolloutConfiguration creationCopyright © 2018. All rights reserved.