close

Filter

loading table of contents...

CoreMedia Content Cloud v11 Upgrade Guide / Version 2110

Table Of Contents

6.11.6 Various Commerce Hub API Removals of Deprecated Code

In CoreMedia Content Cloud v11, only Commerce Adapters with version 2.x.x are supported. Beside the Search API changes described in Section 6.11.7, “Removal of Legacy Commerce Search Facet API and Demo Content” these additional API changes in Commerce Hub were also made to resolve deprecations.

The following changes are only relevant if you have either customized or implemented a project-specific commerce adapter.

  • The catalogId was removed from Invalidation because invalidations do not depend on the catalog.

  • The unused fields ContractIds and SegmentIds were removed from EntityParam.

  • The Price constructor was removed. Use the builder instead.

  • Information about service features can be gathered via gRPC server reflection. Its Feature implementation has been removed.

  • The deprecated ConnectorApplication was removed.

  • com.coremedia.commerce.adapter.base.api.Messages was moved to com.coremedia.commerce.adapter.base.entities.Messages.

  • com.coremedia.commerce.adapter.base.v2.Messages was removed. The utility methods of this class were moved to com.coremedia.commerce.adapter.base.entities.Entities.

  • The Commerce Hub API for preview URLs has been removed from com.coremedia.commerce.adapter.base.repositories.LinkRepository. Now preview URLs are generated the same way as all other commerce related links via link templates and dynamic replacement values. If you run your own commerce adapter implementation or if you do have customizations regarding link generation for Studio preview, you may have to update your LinkRepository implementation.

    com.coremedia.commerce.adapter.base.repositories.LinkRepository does not provide dedicated methods for preview URLs anymore. Instead all links are handled via com.coremedia.commerce.adapter.base.repositories.LinkRepository#getLinkTemplates from now on. A set of preview specific StorefrontRefKeys has been added (see com.coremedia.commerce.adapter.base.entities.links.StorefrontRefKeysPreview). The LinkRepository needs to provide these link templates in order to support the preview feature in CoreMedia Studio Highly dynamic preview specific url tokens are handled via com.coremedia.commerce.adapter.base.repositories.LinkRepository#getLinkVariablesForRequest from now on.

    On the CMS side the com.coremedia.livecontext.ecommerce.link.PreviewUrlService has been deleted and there are changes in the com.coremedia.livecontext.fragment.links.CommerceStudioLinks.

    If you didn't do any customization regarding URLs for Studio preview, nothing needs to be changed on your side.

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

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