public interface RelationshipOverridesExtensionHandler
extends org.broadleafcommerce.common.extension.ExtensionHandler
Utilized when bulding Solr documents, this allows other projects to contribute the fact that a relationship to a Sku
or
Product
was overridden and the parent catalog Solr document needs to be rebuilt.
You only need to implement this if your module contributes fields to the Solr document in a programmatic way, and those
fields depend on relationships to a ProductImpl
or SkuImpl
.
Modifier and Type | Method and Description |
---|---|
org.broadleafcommerce.common.extension.ExtensionResultStatusType |
getRelationshipOverrideCatalogsForProducts(org.broadleafcommerce.common.extension.ExtensionResultHolder<Map<Long,Set<Long>>> result)
Return only catalog relationship overrides for all
Product s, as only the relationship overrides are
cloned with catalog edits and not the ProductImpl entity itself. |
org.broadleafcommerce.common.extension.ExtensionResultStatusType |
getRelationshipOverrideCatalogsForSkus(org.broadleafcommerce.common.extension.ExtensionResultHolder<Map<Long,Set<Long>>> result)
The same as
getRelationshipOverrideCatalogsForSkus(ExtensionResultHolder) , just for Skus. |
org.broadleafcommerce.common.extension.ExtensionResultStatusType getRelationshipOverrideCatalogsForProducts(org.broadleafcommerce.common.extension.ExtensionResultHolder<Map<Long,Set<Long>>> result)
Return only catalog relationship overrides for all Product
s, as only the relationship overrides are
cloned with catalog edits and not the ProductImpl
entity itself.
result
- starts out as empty. Each implementation that adds to result should utilize RelationshipOverridesUtil
if it is using database-backed overridesorg.broadleafcommerce.common.extension.ExtensionResultStatusType getRelationshipOverrideCatalogsForSkus(org.broadleafcommerce.common.extension.ExtensionResultHolder<Map<Long,Set<Long>>> result)
getRelationshipOverrideCatalogsForSkus(ExtensionResultHolder)
, just for Skus.#getRelationshipOverrideCatalogsForProducts(ExtensionResultHolder)}
Copyright © 2020. All rights reserved.