public class CommerceClient extends FormClient
FormClient which in turn provides a core set
of commonly used website, page and form functionality.| Modifier and Type | Class and Description |
|---|---|
static class |
CommerceClient.Builder |
CQClient.InternalBuilder<T extends CQClient>| Modifier and Type | Field and Description |
|---|---|
String |
PRODUCT_PAGE_RESOURCE_TYPE |
String |
PROXY_PRODUCT_PAGE_RESOURCE_TYPE |
LOG, STATISTICS_ROOT, wcmCommands| Constructor and Description |
|---|
CommerceClient(org.apache.http.impl.client.CloseableHttpClient http,
org.apache.sling.testing.clients.SlingClientConfig config) |
CommerceClient(URI serverUrl,
String user,
String password) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.sling.testing.clients.SlingHttpResponse |
addAttribute(String managementPath,
String categoryPath,
String title,
String attrName,
String attrUnit,
int... expectedStatus)
Adds an attribute
|
org.apache.sling.testing.clients.SlingHttpResponse |
addCategory(String managementPath,
String parentCategoryPath,
String title,
int... expectedStatus)
Adds a category
|
org.apache.sling.testing.clients.SlingHttpResponse |
addProduct(String parent,
String title,
double price)
Create a new product.
|
org.apache.sling.testing.clients.SlingHttpResponse |
addProduct(String parent,
String title,
double price,
String description,
String sku,
String color,
String size)
Create a new product.
|
org.apache.sling.testing.clients.SlingHttpResponse |
addProductAsset(String product,
String asset)
Add an asset to a product.
|
org.apache.sling.testing.clients.SlingHttpResponse |
addProductVariant(String parentProduct,
String title,
double price,
String description,
String sku,
String color,
String size)
Add a product variant.
|
org.apache.sling.testing.clients.SlingHttpResponse |
addReferences(String managementPath,
String collectionPath,
String[] referencePaths,
int... expectedStatus)
Adds one or multiple references to a collection
|
org.apache.sling.testing.clients.SlingHttpResponse |
addRootCategory(String managementPath,
String classificationPath,
String title,
int... expectedStatus)
Adds a root category
|
org.apache.sling.testing.clients.SlingHttpResponse |
addSQL2QueryFilter(String blueprintPath,
String query)
Set the product filter of a blueprint or blueprint section using a JCR-SQL2 query.
|
org.apache.sling.testing.clients.SlingHttpResponse |
addTagFilter(String blueprintPath,
String productFolder,
String tag)
Set the product filter of a blueprint or blueprint section using a product base path and a tag.
|
org.apache.sling.testing.clients.SlingHttpResponse |
addTagToProduct(String tagPath,
String productPath)
Assign a tag to a product.
|
org.apache.sling.testing.clients.SlingHttpResponse |
addToCart(String managementPath,
String productPath,
String listPath,
boolean delete,
String redirect,
List<org.apache.http.Header> headers,
int... expectedStatus)
Add a product to the cart
|
org.apache.sling.testing.clients.SlingHttpResponse |
addToSmartList(String managementPath,
String productPath,
String listName,
String redirect,
List<org.apache.http.Header> headers,
int... expectedStatus)
Adds an entry to a smartlist.
|
org.apache.sling.testing.clients.SlingHttpResponse |
addXPathQueryFilter(String blueprintPath,
String query)
Set the product filter of a blueprint or blueprint section using an XPath query.
|
void |
clearCommerceContext(String homePath)
Clear out the commerce context from the user's home directory.
|
org.apache.sling.testing.clients.SlingHttpResponse |
clearShoppingCart(String page)
Clears the shopping cart using the ContextHub.
|
org.apache.sling.testing.clients.SlingHttpResponse |
configureProductComponent(String productPagePath,
String productPath)
Update the product component on a page to point to the given product and generate the product hierarchy.
|
org.apache.sling.testing.clients.SlingHttpResponse |
createBlueprint(String title,
String description,
String parentPath,
String catalogTemplate,
String sectionTemplate,
String productTemplate,
boolean proxyPages)
Create a new blueprint.
|
org.apache.sling.testing.clients.SlingHttpResponse |
createBlueprintSection(String name,
String description,
String parentPath,
boolean proxyPages)
Create a new blueprint section.
|
org.apache.sling.testing.clients.SlingHttpResponse |
createCatalog(String source,
String dest,
String label,
String title,
int... expectedStatus)
Creates a catalog from a blueprint
|
org.apache.sling.testing.clients.SlingHttpResponse |
createClassification(String managementPath,
String parentPath,
String title,
int... expectedStatus)
Creates a classification
|
org.apache.sling.testing.clients.SlingHttpResponse |
createCollection(String managementPath,
String parentPath,
String title,
String type,
String[] referencePaths,
int... expectedStatus)
Creates a collection
|
org.apache.sling.testing.clients.SlingHttpResponse |
createCollection(String managementPath,
String parentPath,
String title,
String type,
String search,
String searchType,
String[] referencePaths,
int... expectedStatus)
Creates a collection
|
org.apache.sling.testing.clients.SlingHttpResponse |
createSmartList(String managementPath,
String title,
boolean defaultList,
String redirect,
List<org.apache.http.Header> headers,
int... expectedStatus)
Creates a smartlist
|
org.apache.sling.testing.clients.SlingHttpResponse |
deleteProductAsset(String productAssetPath)
Deletes an asset from a product.
|
org.apache.sling.testing.clients.SlingHttpResponse |
deleteSmartListEntry(String managementPath,
String productPath,
String listName,
String redirect,
List<org.apache.http.Header> headers,
int... expectedStatus)
Deletes an entry form a smartlist
|
org.apache.sling.testing.clients.SlingHttpResponse |
doCommerceGet(String path,
String cookieText) |
org.apache.sling.testing.clients.SlingHttpResponse |
doCommercePost(String path,
String cookieText,
Map<String,String> parameters)
Execute a commerce-oriented POST request.
|
org.apache.sling.testing.clients.SlingHttpResponse |
editSmartList(String managementPath,
String listPath,
String redirect,
String title,
String description,
List<org.apache.http.Header> headers,
int... expectedStatus)
Edits the properties of a smartlist
|
org.codehaus.jackson.JsonNode |
getCart(String homePath)
Return the user's shopping cart.
|
String |
getCommerceCookieText(org.apache.http.HttpResponse resp)
Return the cookie values concatenated into a single string.
|
org.codehaus.jackson.JsonNode |
getOrders()
Retrieves the committed orders.
|
boolean |
isProductPage(String productPage)
Check if a product page is a regular product page based on its resource type.
|
boolean |
isProxyPage(String productPage)
Check if a product page is a proxy product page based on its resource type.
|
org.apache.sling.testing.clients.SlingHttpResponse |
manageSmartListsDefault(String managementPath,
String title,
String[] defaultList,
String redirect,
List<org.apache.http.Header> headers,
int... expectedStatus)
Manage the default setting of a smartlist
|
org.apache.sling.testing.clients.SlingHttpResponse |
manageSmartListsDelete(String managementPath,
String title,
String[] delete,
String redirect,
List<org.apache.http.Header> headers,
int... expectedStatus)
Delete one or multiple smartlists
|
org.apache.sling.testing.clients.SlingHttpResponse |
modifyQuantitySmartListEntry(String managementPath,
String productPath,
String listPath,
String redirect,
String quantity,
List<org.apache.http.Header> headers,
int... expectedStatus)
Modifies the quantity of an entry on a smartlist
|
org.apache.sling.testing.clients.SlingHttpResponse |
removeCategory(String managementPath,
String categoryPath,
int... expectedStatus)
Removes a category
|
org.apache.sling.testing.clients.SlingHttpResponse |
removeClassification(String managementPath,
String classificationPath,
int... expectedStatus)
Removes a classification
|
org.apache.sling.testing.clients.SlingHttpResponse |
removeCollection(String managementPath,
String collectionPath,
int... expectedStatus)
Removes a collection
|
org.apache.sling.testing.clients.SlingHttpResponse |
removeReferences(String managementPath,
String collectionPath,
String[] referencePaths,
int... expectedStatus)
Removes one or multiple references from a collection
|
org.apache.sling.testing.clients.SlingHttpResponse |
rolloutSection(String source,
String dest,
boolean force,
int... expectedStatus)
Rolls out a section
|
org.apache.sling.testing.clients.SlingHttpResponse |
setCommerceProvider(String url,
String commerceProvider)
Adds or updates the cq:commerceProvider property to a JCR node at a given url.
|
org.apache.sling.testing.clients.SlingHttpResponse |
updateCategory(String managementPath,
String categoryPath,
String title,
int... expectedStatus)
Update the attributes of a category
|
org.apache.sling.testing.clients.SlingHttpResponse |
updateCollection(String managementPath,
String collectionPath,
String title,
String[] referencePaths,
int... expectedStatus)
Updates the properties of a collection
|
org.apache.sling.testing.clients.SlingHttpResponse |
updateProductAsset(String productAssetPath,
String newAsset)
Update an existing asset of a product.
|
doFormPostcopyLanguages, 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 final String PRODUCT_PAGE_RESOURCE_TYPE
public final String PROXY_PRODUCT_PAGE_RESOURCE_TYPE
public CommerceClient(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 doCommercePost(String path, String cookieText, Map<String,String> parameters) throws org.apache.sling.testing.clients.ClientException
path - request pathcookieText - cookie to be addedparameters - list of parametersorg.apache.sling.testing.clients.ClientException - if the request failspublic org.apache.sling.testing.clients.SlingHttpResponse doCommerceGet(String path, String cookieText) throws org.apache.sling.testing.clients.ClientException
org.apache.sling.testing.clients.ClientExceptionpublic org.codehaus.jackson.JsonNode getCart(String homePath) throws org.apache.sling.testing.clients.ClientException
homePath - home pathorg.apache.sling.testing.clients.ClientException - if the request failspublic org.codehaus.jackson.JsonNode getOrders()
throws org.apache.sling.testing.clients.ClientException
org.apache.sling.testing.clients.ClientException - if the request failspublic String getCommerceCookieText(org.apache.http.HttpResponse resp)
resp - http responsepublic void clearCommerceContext(String homePath) throws org.apache.sling.testing.clients.ClientException
homePath - home pathorg.apache.sling.testing.clients.ClientException - if the request failspublic org.apache.sling.testing.clients.SlingHttpResponse createCatalog(String source, String dest, String label, String title, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
source - path to the blueprintdest - destination path to the cataloglabel - label of the catalogtitle - title of the catalogexpectedStatus - expected HTTP response status codeorg.apache.sling.testing.clients.ClientException - if the request could not be executedpublic org.apache.sling.testing.clients.SlingHttpResponse rolloutSection(String source, String dest, boolean force, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
source - path to blueprintdest - destination path to the catalogforce - whether the rollout should be forcedexpectedStatus - expected HTTP response status codeorg.apache.sling.testing.clients.ClientException - if the request could not be executedpublic org.apache.sling.testing.clients.SlingHttpResponse createClassification(String managementPath, String parentPath, String title, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
managementPath - path to which the request should be sentparentPath - path to the parent nodetitle - name of the classificationexpectedStatus - expected HTTP response status codeorg.apache.sling.testing.clients.ClientException - if the request could not be executedpublic org.apache.sling.testing.clients.SlingHttpResponse removeClassification(String managementPath, String classificationPath, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
managementPath - path to which the request should be sentclassificationPath - path to the classificationexpectedStatus - expected HTTP response status codeorg.apache.sling.testing.clients.ClientException - if the request could not be executedpublic org.apache.sling.testing.clients.SlingHttpResponse addRootCategory(String managementPath, String classificationPath, String title, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
managementPath - path to which the request should be sentclassificationPath - path to the classificationtitle - name of the categoryexpectedStatus - expected HTTP response status codeorg.apache.sling.testing.clients.ClientException - if the request could not be executedpublic org.apache.sling.testing.clients.SlingHttpResponse addCategory(String managementPath, String parentCategoryPath, String title, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
managementPath - path to which the request should be sentparentCategoryPath - path to the parent categorytitle - name of the categoryexpectedStatus - expected HTTP response status codeorg.apache.sling.testing.clients.ClientException - if the request could not be executedpublic org.apache.sling.testing.clients.SlingHttpResponse removeCategory(String managementPath, String categoryPath, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
managementPath - path to which the request should be sentcategoryPath - path to the categoryexpectedStatus - expected HTTP response status codeorg.apache.sling.testing.clients.ClientException - if the request could not be executedpublic org.apache.sling.testing.clients.SlingHttpResponse updateCategory(String managementPath, String categoryPath, String title, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
managementPath - path to which the request should be sentcategoryPath - path to the categorytitle - name of the categoryexpectedStatus - expected HTTP response status codeorg.apache.sling.testing.clients.ClientException - if the request could not be executedpublic org.apache.sling.testing.clients.SlingHttpResponse addAttribute(String managementPath, String categoryPath, String title, String attrName, String attrUnit, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
managementPath - path to which the request should be sentcategoryPath - path to the categorytitle - attribute titleattrName - attribute nameattrUnit - attribute unitexpectedStatus - expected HTTP response status codeorg.apache.sling.testing.clients.ClientException - if the request could not be executedpublic org.apache.sling.testing.clients.SlingHttpResponse createCollection(String managementPath, String parentPath, String title, String type, String search, String searchType, String[] referencePaths, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
managementPath - path to which the request should be sentparentPath - path to the parent nodetitle - name of the collectiontype - type of the collectionsearch - searchsearchType - search type of the collectionreferencePaths - reference pathsexpectedStatus - expected HTTP response status codeorg.apache.sling.testing.clients.ClientException - if the request could not be executedpublic org.apache.sling.testing.clients.SlingHttpResponse createCollection(String managementPath, String parentPath, String title, String type, String[] referencePaths, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
managementPath - path to which the request should be sentparentPath - path to the parent nodetitle - title of the collectiontype - type of the collectionreferencePaths - reference pathsexpectedStatus - expected HTTP response status codeorg.apache.sling.testing.clients.ClientException - if the request could not be executedpublic org.apache.sling.testing.clients.SlingHttpResponse updateCollection(String managementPath, String collectionPath, String title, String[] referencePaths, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
managementPath - path to which the request should be sentcollectionPath - path to the collectiontitle - name of the collectionreferencePaths - reference pathsexpectedStatus - expected HTTP response status codeorg.apache.sling.testing.clients.ClientException - if the request could not be executedpublic org.apache.sling.testing.clients.SlingHttpResponse removeCollection(String managementPath, String collectionPath, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
managementPath - path to which the request should be sentcollectionPath - path to the collectionexpectedStatus - expected HTTP response status codeorg.apache.sling.testing.clients.ClientException - if the request could not be executedpublic org.apache.sling.testing.clients.SlingHttpResponse addReferences(String managementPath, String collectionPath, String[] referencePaths, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
managementPath - path to which the request should be sentcollectionPath - path to the collectionreferencePaths - list of HTTP headersexpectedStatus - expected HTTP response status codeorg.apache.sling.testing.clients.ClientException - if the request could not be executedpublic org.apache.sling.testing.clients.SlingHttpResponse removeReferences(String managementPath, String collectionPath, String[] referencePaths, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
managementPath - path to which the request should be sentcollectionPath - path tp the collectionreferencePaths - list of HTTP headersexpectedStatus - expected HTTP response status codeorg.apache.sling.testing.clients.ClientException - if the request could not be executedpublic org.apache.sling.testing.clients.SlingHttpResponse createSmartList(String managementPath, String title, boolean defaultList, String redirect, List<org.apache.http.Header> headers, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
managementPath - path to which the request should be senttitle - name of the smartlistdefaultList - should the created list be a default list?redirect - redirection pathheaders - list of HTTP headersexpectedStatus - expected HTTP response status codeorg.apache.sling.testing.clients.ClientException - if the request could not be executedpublic org.apache.sling.testing.clients.SlingHttpResponse manageSmartListsDelete(String managementPath, String title, String[] delete, String redirect, List<org.apache.http.Header> headers, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
managementPath - path to which the request should be senttitle - name of the smartlistdelete - one or multiple smartlists to deleteredirect - redirection pathheaders - list of HTTP headersexpectedStatus - expected HTTP response status codeorg.apache.sling.testing.clients.ClientException - if the request could not be executedpublic org.apache.sling.testing.clients.SlingHttpResponse manageSmartListsDefault(String managementPath, String title, String[] defaultList, String redirect, List<org.apache.http.Header> headers, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
managementPath - path to which the request should be senttitle - name of the smartlistdefaultList - one or multiple smartlists that should be a default listredirect - redirection pathheaders - list of HTTP headersexpectedStatus - expected HTTP response status codeorg.apache.sling.testing.clients.ClientException - if the request could not be executedpublic org.apache.sling.testing.clients.SlingHttpResponse editSmartList(String managementPath, String listPath, String redirect, String title, String description, List<org.apache.http.Header> headers, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
managementPath - path to which the request should be sentlistPath - path to the smartlistredirect - redirection pathtitle - name of the smartlistdescription - description of the smartlistheaders - list of HTTP headersexpectedStatus - expected HTTP response status codeorg.apache.sling.testing.clients.ClientException - if the request could not be executedpublic org.apache.sling.testing.clients.SlingHttpResponse addToSmartList(String managementPath, String productPath, String listName, String redirect, List<org.apache.http.Header> headers, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
managementPath - path to which the request should be sentproductPath - path to the productlistName - name of the smartlistredirect - redirection pathheaders - list of HTTP headersexpectedStatus - expected HTTP response status codeorg.apache.sling.testing.clients.ClientException - if the request could not be executedpublic org.apache.sling.testing.clients.SlingHttpResponse deleteSmartListEntry(String managementPath, String productPath, String listName, String redirect, List<org.apache.http.Header> headers, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
managementPath - path to which the request should be sentproductPath - path to the productlistName - name of the smartlistredirect - redirection pathheaders - list of HTTP headersexpectedStatus - expected HTTP response status codeorg.apache.sling.testing.clients.ClientException - if the request could not be executedpublic org.apache.sling.testing.clients.SlingHttpResponse modifyQuantitySmartListEntry(String managementPath, String productPath, String listPath, String redirect, String quantity, List<org.apache.http.Header> headers, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
managementPath - path to which the request should be sentproductPath - path to the productlistPath - path to the smartlistredirect - redirection pathquantity - new quantityheaders - list of HTTP headersexpectedStatus - expected HTTP response status codeorg.apache.sling.testing.clients.ClientException - if the request could not be executedpublic org.apache.sling.testing.clients.SlingHttpResponse addToCart(String managementPath, String productPath, String listPath, boolean delete, String redirect, List<org.apache.http.Header> headers, int... expectedStatus) throws org.apache.sling.testing.clients.ClientException
managementPath - path to which the request should be sentproductPath - path to the productlistPath - path to the smartlistdelete - should the product be deleted from its smartlist?redirect - redirection pathheaders - list of HTTP headersexpectedStatus - expected HTTP response status codeorg.apache.sling.testing.clients.ClientException - if the request could not be executedpublic org.apache.sling.testing.clients.SlingHttpResponse configureProductComponent(String productPagePath, String productPath) throws org.apache.sling.testing.clients.ClientException
productPagePath - Path to product pageproductPath - Path to the productorg.apache.sling.testing.clients.ClientException - if the request failspublic org.apache.sling.testing.clients.SlingHttpResponse addProduct(String parent, String title, double price) throws org.apache.sling.testing.clients.ClientException
parent - Parent foldertitle - Nameprice - Priceorg.apache.sling.testing.clients.ClientException - if the request failspublic org.apache.sling.testing.clients.SlingHttpResponse addProduct(String parent, String title, double price, String description, String sku, String color, String size) throws org.apache.sling.testing.clients.ClientException
parent - Parent foldertitle - Nameprice - Pricedescription - Descriptionsku - SKU identifiercolor - Colorsize - Sizeorg.apache.sling.testing.clients.ClientException - if the request failspublic org.apache.sling.testing.clients.SlingHttpResponse addTagToProduct(String tagPath, String productPath) throws org.apache.sling.testing.clients.ClientException
tagPath - Path to the tag.productPath - Path to the product.org.apache.sling.testing.clients.ClientException - if the request failspublic org.apache.sling.testing.clients.SlingHttpResponse addProductAsset(String product, String asset) throws org.apache.sling.testing.clients.ClientException
product - Path to productasset - Path to assetorg.apache.sling.testing.clients.ClientException - if the request failspublic org.apache.sling.testing.clients.SlingHttpResponse updateProductAsset(String productAssetPath, String newAsset) throws org.apache.sling.testing.clients.ClientException
productAssetPath - Path to the product's asset (e.g. ProductPath + "/assets/asset0")newAsset - Path to new assetorg.apache.sling.testing.clients.ClientException - if the request failspublic org.apache.sling.testing.clients.SlingHttpResponse deleteProductAsset(String productAssetPath) throws org.apache.sling.testing.clients.ClientException
productAssetPath - Path to the product's asset (e.g. ProductPath + "/assets/asset0")org.apache.sling.testing.clients.ClientException - if the request failspublic org.apache.sling.testing.clients.SlingHttpResponse addProductVariant(String parentProduct, String title, double price, String description, String sku, String color, String size) throws org.apache.sling.testing.clients.ClientException
parentProduct - Path of parent producttitle - Titleprice - Pricedescription - Descriptionsku - SKU identifiercolor - Colorsize - Sizeorg.apache.sling.testing.clients.ClientException - if the request failspublic org.apache.sling.testing.clients.SlingHttpResponse createBlueprint(String title, String description, String parentPath, String catalogTemplate, String sectionTemplate, String productTemplate, boolean proxyPages) throws org.apache.sling.testing.clients.ClientException
title - Titledescription - DescriptionparentPath - Path under which the blueprint should be createdcatalogTemplate - Path to catalog page templatesectionTemplate - Path to section page templateproductTemplate - Path to product page templateproxyPages - Whether proxy pages should be generatedorg.apache.sling.testing.clients.ClientException - if the request failspublic org.apache.sling.testing.clients.SlingHttpResponse createBlueprintSection(String name, String description, String parentPath, boolean proxyPages) throws org.apache.sling.testing.clients.ClientException
name - Namedescription - DescriptionparentPath - Path of the parent blueprint or blueprint sectionproxyPages - Whether proxy pages should be generatedorg.apache.sling.testing.clients.ClientException - if the request failspublic boolean isProductPage(String productPage) throws org.apache.sling.testing.clients.ClientException
productPage - Path to product pageorg.apache.sling.testing.clients.ClientException - if the request failspublic boolean isProxyPage(String productPage) throws org.apache.sling.testing.clients.ClientException
productPage - Path to product pageorg.apache.sling.testing.clients.ClientException - if the request failspublic org.apache.sling.testing.clients.SlingHttpResponse addTagFilter(String blueprintPath, String productFolder, String tag) throws org.apache.sling.testing.clients.ClientException
blueprintPath - Blueprint or blueprint section pathproductFolder - Product Foldertag - Tagorg.apache.sling.testing.clients.ClientException - if the request failspublic org.apache.sling.testing.clients.SlingHttpResponse addSQL2QueryFilter(String blueprintPath, String query) throws org.apache.sling.testing.clients.ClientException
blueprintPath - Blueprint or blueprint section pathquery - JCQ-SQL2 queryorg.apache.sling.testing.clients.ClientException - if the request failspublic org.apache.sling.testing.clients.SlingHttpResponse addXPathQueryFilter(String blueprintPath, String query) throws org.apache.sling.testing.clients.ClientException
blueprintPath - Blueprint or blueprint section pathquery - XPath queryorg.apache.sling.testing.clients.ClientException - if the request failspublic org.apache.sling.testing.clients.SlingHttpResponse clearShoppingCart(String page) throws org.apache.sling.testing.clients.ClientException
page - Content page that can be used to call the ContextHuborg.apache.sling.testing.clients.ClientException - if the request failspublic org.apache.sling.testing.clients.SlingHttpResponse setCommerceProvider(String url, String commerceProvider) throws org.apache.sling.testing.clients.ClientException
url - URL of the nodecommerceProvider - commerce provider identifierorg.apache.sling.testing.clients.ClientException - if the request failsCopyright © 2018. All rights reserved.