close

Filter

loading table of contents...

Connector for HCL Commerce Manual / Version 2406.1

Table Of Contents

12. Commerce Adapter Properties

cache.capacities
Type Map<String,Long>
Description

Number of cache entries per cache class until cache eviction takes place. The keys must match the cache classes as defined by the cache keys. Please refer to javadoc of com.coremedia.cache.CacheKey.

cache.timeout-seconds
Type Map<String,Long>
Description

TTL in seconds until certain cache entries are invalidated.

entities.circuit-breaker-names
Type Map<String,String>
Description

Mapping of data lookup keys (cache classes) to circuit breaker names. Mapping to 'none' disables circuit breakers for the mapped data lookup keys.

Example: Mapping 'product' to 'products' will use a separate circuit breaker named 'products' for product calls. The new circuit breaker can have its own configuration via 'resilience4j.circuitbreaker.configs.products'. Mapping 'product' to 'none' will disable the circuit breaker for product requests.

entities.default-circuit-breaker-name
Type String
Default base
Description

The default breaker name.

entities.disable-circuit-breakers
Type Boolean
Default false
Description

Disable circuit breakers and cache failed calls in cache class failed.

entities.exponential-backoff.factor
Type Double
Default 1.5
Description

The factor to be applied to the delay to compute the next delay.

entities.exponential-backoff.initial-delay
Type Duration
Default 2s
Description

The initial delay of the backoff.

entities.message-store.files
Type Map<String,Long>
Description

The number of request/response pairs to cache persistently. The keys must be valid cache classes as configured for the data lookup service, e.g., catalog, catalogs, category, categories, etc.

entities.message-store.root
Type org.​springframework.​core.​io.​Resource
Description

Root resource to persistently store messages. If this property is not set, no messages will be persisted. Configure a value to enable persistent caching of messages.

entities.products.register-parent-dependency
Type Boolean
Default true
Description

Controls if a parent dependency is registered for a non-base product so that it is invalidated together with its base product.

entities.recompute-on-invalidation
Type Boolean
Default false
Description

Whether to recompute entities proactively on invalidation.

entities.send-invalidations
Type Boolean
Default true
Description

Whether or not to propagate invalidations of entities to the clients.

metadata.additional-metadata
Type Map<String,String>
Description

Map of additional metadata.

Can be used as customization hook. All properties starting with "metadata.additional-metadata.*" are transmitted to the generic client on the CMS side.

metadata.custom-attributes-format
Type com.​coremedia.​commerce.​adapter.​base.​entities.​CustomAttributesFormat
Description

Format of the custom attribute values.

The keys are always plain strings.

Used to identify the deserialization format on the CMS side.

metadata.custom-entity-param-names
Type Collection<String>
Description

List of parameter names, which values need to be transmitted with every entity request from the CMS side.

metadata.replacement-tokens
Type Map<String,String>
Description

Map of key value pairs.

Used as replacement map for example for link building in the generic client on the CMS side.

metadata.vendor
Type String
Description

Name of the vendor.

Used to identify the connected vendor on the CMS side.

wcs.always-use-master-category
Type Boolean
Default false
Description

Determines that the master category is set on a product. A "master" category must exist in the master catalog and the sales catalog as well. If it is combined with categoryValidationEnabled = true and if the master category cannot be loaded then the next valid category is returned.

If set to "true" the master category is set on products.

wcs.auth-header-name
Type String
Description

The name of an authentication header the REST connector uses the access the WCS REST services.

Default is empty, no Authentication header is used.

wcs.auth-header-value
Type String
Description

The value of an authentication header the REST connector uses the access the WCS REST services.

wcs.category-validation-enabled
Type Boolean
Default false
Description

Determines that only a loadable category is set on a product. All eligible categories are loaded one after the other. The first one that is successful is used.

If set to "true" only a loadable category is set on products.

wcs.connection-pool-size
Type Integer
Default 200
Description

Maximum number of connections used by the REST connector to access WCS REST services.

Deprecation

This property has been deprecated and will be removed in a future version.

Use commerce.rest.client.connection-pool-size instead.

Reason:

use base adapter configuration option

wcs.connection-request-timeout
Type Integer
Default -1
Description

The connection request timeout in milliseconds used by the REST connector to access WCS REST services.

That is the time to wait for a response after a connection has been successfully established. A value of "-1" means the client will wait "forever".

Deprecation

This property has been deprecated and will be removed in a future version.

Use commerce.rest.client.connection-request-timeout instead.

Reason:

use base adapter configuration option

wcs.connection-timeout
Type Integer
Default 10000
Description

The connection timeout in milliseconds used by the REST connector to access WCS REST services.

That is the time until the server accepts the request. A value of "0" means "infinite".

Deprecation

This property has been deprecated and will be removed in a future version.

Use commerce.rest.client.connect-timeout instead.

Reason:

use base adapter configuration option

wcs.cookie.user.filter-pattern
Type String
Default WCP?_.+
Description

The regular expression pattern for which the client should filter the relevant cookies. This should narrow down the cookies on the client side to a subset of cacheable cookies.

wcs.cookie.user.filter-pattern-for
Type Map<String,String>
Description

Cookie filter pattern for specific environment. The structure of the Map should be: key=environment, value=cookie pattern. The environment is the hardcoded name of the entity param which must be configured on the CM App client side e.g. `commerce.hub.data.customEntityParams.environment=PREVIEW|LIVE``

Examples:

wcs.link.filter-pattern-for.preview=WCP?_.+
wcs.link.filter-pattern-for.live=WC?_.+
wcs.cookie.user.user-session-pattern
Type String
Default WCP?_USERACTIVITY_(-1002|\d+)
Description

The regular expression pattern for the WCS user session cookie. See description for WC_USERACTIVITY_ID in:

wcs.default-locale
Type Locale
Default us
Description

The default locale the REST connector is using if no locale is given.

wcs.dynamic-pricing-enabled
Type Boolean
Default false
Description

Determines if dynamic pricing is enabled.

If set to "true" the PriceRepository tries to get personalized prices from the WCS, otherwise an empty price list is returned.

wcs.link.asset-url
Type String
Description

Asset URL prefix that is used to build asset links to shop images in the live system.

Typically, a proxy url is set including protocol and possibly a context path prefix.

Should only be set if the adapter does not need to distinguish environments. In this case no environment metadata.custom-entity-param-names parameter is required.

Examles:

https://shop-hcl.coremedia.vm
https://shop-preview-hcl.coremedia.vm

This and the further wcs.link properties are not needed when only connecting to HCL Commerce 9.1+ React stores.

wcs.link.asset-url-for
Type Map<String,String>
Description

Asset URL prefixes which are used to build asset links to shop images for different environments.

Typically, a proxy url is set including protocol and possibly a context path prefix. The structure of the Map should be: {key=environment, value=url}. The environment is the hardcoded name of the entity param which must be configured in the CMS app, e.g. commerce.hub.data.custom-entity-params.environment=preview|live. IMPORTANT: The keys used here must match those used in the CMS app via commerce.hub.data.customEntityParams.environment={environment}.

Examples:

wcs.link.asset-url-for.preview=https://shop-preview-hcl.coremedia.vm
wcs.link.asset-url-for.live=https://shop-hcl.coremedia.vm

For configuration options see also documentation of wcs.link.storefront-url-for.

This and the further wcs.link properties are not needed when only connecting to HCL Commerce 9.1+ React stores.

wcs.link.link-templates
Type Map<String,String>
Description

Map of StorefrontRef. Used to build shop urls for the Studio Preview and Content-Led integration scenarios.

Known default lookup keys are defined in StorefrontRefKeysCommerceLed and StorefrontRefKeysContentLed. Only lookup keys in lowercase and without "_" are valid.

These patterns can include tokens which will be replaced. These tokens must be well known. The following tokens are predefined:

  • {storefrontUrl} ... the current store front URL

  • {storeId} ... the current store id

  • {locale} ... the current locale in java format, eg. en_US

  • {language} ... the current language in java format, eg. en

  • {langId} ... the current language as WCS specific id, e.g. "-1" as default language

  • {catalogId} ... the current catalog id

  • {categoryId} ... the current category id

  • {productId} ... the current product id

  • {seoSegment} ... the current seo segment path (can contain path delimiters)

This and the further wcs.link properties are not needed when only connecting to HCL Commerce 9.1+ React stores.

wcs.link.link-templates.categorylinkfragment
Type String
Default <!--CM {"parentCategoryId":"{parentCategoryId}","topCategoryId":"{topCategoryId}","level":{level},"renderType":"url","categoryId":"{categoryId}","objectType":"category"} CM-->
Description

Used to generate category page links into CoreMedia fragments.

wcs.link.link-templates.categorynonseourl
Type String
Default {storefrontUrl}/CategoryDisplay?categoryId={categoryTechId}&storeId={storeId}&langId={langId}&catalogId={catalogId}
Description

Non-seo-friendly shop URLs to category pages.

wcs.link.link-templates.categorypreviewurl
Type String
Default {storefrontUrl}/CategoryDisplay?categoryId={categoryTechId}&storeId={storeId}&langId={langId}&catalogId={catalogId}&newPreviewSession=true&previewToken={previewToken}
Description

Used to build the preview URL to a category page.

wcs.link.link-templates.categoryseourl
Type String
Default {storefrontUrl}/{language}/{storeName}/{pageId}
Description

Used to build seo-friendly URLs to category pages.

wcs.link.link-templates.checkoutredirecturl
Type String
Default {storefrontUrl}/OrderCalculate?calculationUsageId=-1&storeId={storeId}&updatePrices=1&catalogId={catalogId}&orderId=.&langId={langId}&URL=AjaxOrderItemDisplayView
Description

Used to build the redirect URL to the checkout page.

wcs.link.link-templates.cmajaxlinkfragment
Type String
Default <!--CM {"url":"{url}","renderType":"url","objectType":"ajax"} CM-->
Description

Used to generate ajax urls to CoreMedia contents into CoreMedia fragments.

wcs.link.link-templates.cmcontentlinkfragment
Type String
Default <!--CM {"externalSeoSegment":"{externalSeoSegment}","renderType":"url","objectType":"content"} CM-->
Description

Used to build links to shop pages displaying CoreMedia Articles and Channels into CoreMedia fragments.

wcs.link.link-templates.cmcontentpreviewurl
Type String
Default {storefrontUrl}/{language}/{storeName}/cm/{seoSegment}?newPreviewSession=true&previewToken={previewToken}
Description

Used to build the preview URL to a shop page which displays a CoreMedia content.

wcs.link.link-templates.cmcontenturl
Type String
Default {storefrontUrl}/{language}/{storeName}/cm/{seoSegment}
Description

Used to build seo-friendly URLs to shop pages displaying CoreMedia Articles and Channels.

wcs.link.link-templates.contractpreviewurl
Type String
Default true
Description

Used to build a preview url with a contract parameter.

wcs.link.link-templates.externalpagenonseopreviewurl
Type String
Default {storefrontUrl}/{externalUriPath}&newPreviewSession=true&previewToken={previewToken}
Description

Used to build the preview URL to a shop page which has no seo support.

wcs.link.link-templates.externalpagenonseourl
Type String
Default {storefrontUrl}/{externalUriPath}
Description

Used to build non-seo-friendly URLs to shop pages.

wcs.link.link-templates.externalpagepreviewurl
Type String
Default {storefrontUrl}/{language}/{storeName}/{pageId}?newPreviewSession=true&previewToken={previewToken}
Description

Used to build the preview URL to a shop page.

wcs.link.link-templates.externalpageseourl
Type String
Default {storefrontUrl}/{language}/{storeName}/{pageId}
Description

Used to build seo-friendly URLs to shop pages.

wcs.link.link-templates.homepagelinkfragment
Type String
Default <!--CM {"externalSeoSegment":"","renderType":"url","objectType":"page"} CM-->
Description

Used to the link to the home page.

wcs.link.link-templates.homepagepreviewurl
Type String
Default {storefrontUrl}/{language}/{storeName}/{pageId}?newPreviewSession=true&previewToken={previewToken}
Description

Used to build the preview URL to the shop home page.

wcs.link.link-templates.loginurl
Type String
Default {storefrontUrl}/UserRegistrationForm?catalogId={catalogId}&langId={langId}&storeId={storeId}
Description

Used to build the URL to the Login page.

wcs.link.link-templates.logouturl
Type String
Default {storefrontUrl}/Logoff?storeId={storeId}
Description

Used to build the URL which logs off the current user.

wcs.link.link-templates.productlinkfragment
Type String
Default <!--CM {"productId":"{productId}","renderType":"url","categoryId":"{categoryId}","objectType":"product"} CM-->
Description

Used to build product detail page links into CoreMedia fragments.

wcs.link.link-templates.productnonseourl
Type String
Default {storefrontUrl}/ProductDisplay?productId={productTechId}&storeId={storeId}&langId={langId}&catalogId={catalogId}
Description

Url pattern that is used to build non-seo-friendly shop URLs to product detail pages.

wcs.link.link-templates.productpreviewurl
Type String
Default {storefrontUrl}/ProductDisplay?productId={productTechId}&storeId={storeId}&langId={langId}&catalogId={catalogId}&newPreviewSession=true&previewToken={previewToken}
Description

Used to build the preview URL to a product detail page.

wcs.link.link-templates.productseourl
Type String
Default {storefrontUrl}/{language}/{storeName}/{pageId}
Description

Url pattern that is used to build shop URLs for product detail pages.

wcs.link.link-templates.searchredirecturl
Type String
Default {storefrontUrl}/SearchDisplay?storeId={storeId}&catalogId={catalogId}&langId={langId}&pageSize=12&searchTerm={searchTerm}
Description

Used to build the parameterized search url to be redirected to the shop search result page.

wcs.link.link-templates.shoppagelinkfragment
Type String
Default <!--CM {"externalSeoSegment":"{externalSeoSegment}","externalUriPath":"{externalUriPath}","renderType":"url","objectType":"page"} CM-->
Description

Used to build URLs to shop pages into CoreMedia fragments.

wcs.link.product-max-url-segments
Type Integer
Default 3
Description

Max url segments of an seo url for products

This and the further wcs.link properties are not needed when only connecting to HCL Commerce 9.1+ React stores.

wcs.link.storefront-url
Type String
Description

Storefront URL prefix that is used to build storefront links to shop pages and resources in the live system.

Typically, a proxy url is set, including protocol and possibly a context path prefix.

Should only be set if the adapter does not need to distinguish environments In this case no environment metadata.custom-entity-param-names parameter is required.

Examples:

https://shop-hcl.coremedia.vm/webapp/wcs/shop
https://shop-preview-hcl.coremedia.vm/webapp/remote/preview/servlet

This and the further wcs.link properties are not needed when only connecting to HCL Commerce 9.1+ React stores.

wcs.link.storefront-url-for
Type Map<String,String>
Description

Storefront URLs which are used to build storefront links to shop pages and resources for different environments. The structure of the Map should be: {key=environment, value=url}.

The multi-environment support needs to be activated via metadata.custom-entity-param-names=environment.

Examples:

wcs.link.storefront-url-for.preview=https://shop-preview-hcl.coremedia.vm/webapp/remote/preview/servlet
wcs.link.storefront-url-for.live=https://shop-hcl.coremedia.vm/webapp/wcs/shop

The environment name for the custom entity param must be configured on the client side (CAE, Studio, etc.). Global configuration example: commerce.hub.data.customEntityParams.environment=preview|live

You may also configure multiple storefront URLs for different sites/environments via the commerce settings struct: commerce (Struct) customEntityParams (Struct) environment=siteus (String) Keep the lookup keys simple. Use lowercase with no special characters.

Be aware that you need to configure the environment values on the client site first, otherwise lookups can't work and will fail. There is no default fallback as this could lead to even more confusion.

This and the further wcs.link properties are not needed when only connecting to HCL Commerce 9.1+ React stores.

wcs.network-address-cache-ttl-in-millis
Type Integer
Default -1
Description

The time a network address will be cached from the WCS REST Connector.

A value of "-1" means network addresses will be cached "forever".

Deprecation

This property has been deprecated and will be removed in a future version.

Use commerce.rest.client.network-address-cache-ttl instead.

Reason:

use base adapter configuration option

wcs.password
Type String
Description

The service user password the REST connector uses to log in into WCS.

This is mandatory and must be set.

wcs.response-size-threshold-k-bytes
Type Integer
Default 200
Description

The threshold for response sizes. A warning is logged for responses exceeding the configured size.

Deprecation

This property has been deprecated and will be removed in a future version.

Use commerce.rest.response-size-threshold-kilo-bytes instead.

Reason:

use base adapter configuration option

wcs.search-engine
Type com.​coremedia.​commerce.​adapter.​wcs.​client.​common.​SearchEngineType
Description

Configures the search engine type of the HCL Commerce System.

It is only used since HCL Commerce 9.1 and the search engine ES is used as the default.

wcs.search-profile-prefix
Type String
Default CoreMedia
Description

Configures the prefix of the HCL Commerce Search profile.

For HCL Commerce 9.0 and older the prefix CoreMedia is used as the default search profile prefix. With HCL Commerce 9.1 the prefix should be set to HCL.

wcs.search-url
Type String
Description

The general WCS URL to access the search-based WCS REST services via http.

If a REST service does not need secure access this url prefix is used.

wcs.secure-search-url
Type String
Description

The secure WCS URL to access the search-based WCS REST services via https.

If a REST service needs secure access this url prefix is used.

wcs.secure-url
Type String
Description

The secure WCS URL to access the WCS REST services via https.

If a REST service needs secure access this url prefix is used.

wcs.single-value-search-facets
Type List<String>
Description

Configures the keys of the facets that that can only be added with a single value to product search requests.

Should e.g. be configured with parentCatgroup_id_search when connecting to WCS 8.0, because it doesn't allow searching with multiple category facets.

wcs.socket-timeout
Type Integer
Default 30000
Description

The socket timeout in milliseconds used by the REST connector to access WCS REST services.

That is the time to wait for a response after a request has been sent. A value of "0" means "infinite".

Deprecation

This property has been deprecated and will be removed in a future version.

Use commerce.rest.client.socket-timeout instead.

Reason:

use base adapter configuration option

wcs.trust-all-ssl-certificates
Type Boolean
Default false
Description

Determines if the REST connector accepts any certificates from the WCS.

Note, this value has to be set to "false" in production environments. For internal test systems it is ok bypassing the server authentication.

Deprecation

This property has been deprecated and will be removed in a future version.

Use commerce.rest.client.trust-all-ssl-certificates instead.

Reason:

use base adapter configuration option

wcs.url
Type String
Description

The general WCS URL to access the WCS REST services via http.

If a REST service does not need secure access this url prefix is used.

wcs.username
Type String
Description

The service user the REST connector uses to log in into WCS.

This is mandatory and must be set.

wcs.version
Type String
Description

The WCS version. Some WCS REST services are version specific.

Table 12.1. HCL Commerce Adapter related Properties


Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.