public interface ProductRelationshipsProvider
ProductRelationships for a particular context (shopper, cart, page, product).
It should be noted that the out-of-the-box RelatedProducts ClientContext store includes the product's SKU, title, imageUrl and path, and all the relationship's metadata, into the ClientContext. A RelationshipsProvider can therefore chose to have other product fields included in the ClientContext simply by copying them to the relationship's metadata.
As an example, one might include two properties regarding the relationship (source and message), and an additional product property (the price):
message: "Recommended because you purchased 'Amy Winehouse' in the past"
|Modifier and Type||Field and Description|
Implementations which support only a single relationshipType are encouraged to place that relationshipType into an OSGi property so that ProductRelationshipsProviders can be selected by type.
|Modifier and Type||Method and Description|
static final java.lang.String RELATIONSHIP_TYPE_PN
relationshipTypes supported by this provider to their
java.util.List<ProductRelationship> getRelationships(SlingHttpServletRequest request, CommerceSession session, Page page, Product product) throws CommerceException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"