public class MultiTenantPriceListSolrIndexServiceExtensionHandler
extends com.broadleafcommerce.pricelist.extension.PriceListSolrIndexServiceExtensionHandler
PriceListSolrIndexServiceExtensionHandler. This specifically was created
to wrap and enhance the PriceListSolrIndexServiceExtensionHandler.attachChildDocuments(Indexable, SolrInputDocument, List, List)
method in order to ensure that TEMPLATE-level Catalogs include STANDARD site override and default catalogs when
building Price child documents. This allows users to create formula-based PriceLists on the site level that will be
reflected in the search results without having to use SolrConfiguration.isSiteCollections().PriceListSolrIndexServiceExtensionHandler| Constructor and Description |
|---|
MultiTenantPriceListSolrIndexServiceExtensionHandler(org.broadleafcommerce.core.search.service.solr.index.SolrIndexServiceExtensionManager extensionManager,
MultiTenantStateManager multiTenantStateManager,
MultiTenantDao multiTenantDao) |
| Modifier and Type | Method and Description |
|---|---|
org.broadleafcommerce.common.extension.ExtensionResultStatusType |
addPropertyValues(org.broadleafcommerce.core.catalog.domain.Indexable indexable,
org.broadleafcommerce.core.search.domain.Field field,
org.broadleafcommerce.core.search.domain.solr.FieldType fieldType,
Map<String,Object> values,
String propertyName,
List<org.broadleafcommerce.common.locale.domain.Locale> locales)
Deprecated.
This is deprecated in favor of using nested documents
attachChildDocuments(Indexable, SolrInputDocument, List, List) |
protected org.broadleafcommerce.common.extension.ExtensionResultStatusType |
attachActiveDateFields(org.broadleafcommerce.core.catalog.domain.Sku sku,
String skuFieldPrefix,
org.apache.solr.common.SolrInputDocument document,
org.broadleafcommerce.core.search.service.solr.SolrHelperService shs)
Deprecated.
This is deprecated in favor of using nested documents
attachChildDocuments(Indexable, SolrInputDocument, List, List) |
protected void |
attachBasicPriceDocumentFields(org.broadleafcommerce.core.catalog.domain.Product product,
com.broadleafcommerce.pricelist.domain.PriceList priceList,
org.apache.solr.common.SolrInputDocument pricingDocument) |
org.broadleafcommerce.common.extension.ExtensionResultStatusType |
attachChildDocuments(org.broadleafcommerce.core.catalog.domain.Indexable indexable,
org.apache.solr.common.SolrInputDocument document,
List<org.broadleafcommerce.core.search.domain.IndexField> fields,
List<org.broadleafcommerce.common.locale.domain.Locale> locales) |
protected String |
buildCacheKey(Long catalogId)
Simply prepends the cache key prefix to the
Catalog's ID. |
protected org.broadleafcommerce.common.site.domain.Catalog |
getCurrentCatalog() |
protected org.broadleafcommerce.common.site.domain.Site |
getCurrentSite() |
protected String |
getPriceListCatalogFieldName() |
protected List<Long> |
retrieveChildCatalogIdsIncludingParent(org.broadleafcommerce.common.site.domain.Catalog parent)
Retrieve all of the implicit and default catalogs for any sites this catalog is assigned to.
|
attachAdditionalBasicFields, attachPriceFieldsIfExist, clearPriceListRequestContext, clearPricingContext, endBatchEvent, establishCurrency, extractPriceListFields, gatherPriceLists, getAllPriceLists, getDocumentType, getNonNullFutureDate, getPriceListActiveEndDateFieldName, getPriceListActiveStartDateFieldName, getPriceListIdFieldName, getPricelistPrefix, getPricelistPrefix, getPricelistPrefixWithSeparator, getPricelistPrefixWithSeparator, getPriceValue, getPriority, isContractPricingEnabled, isIndexPriceListActiveDates, isNestedPricingEnabled, isSalePricingEnabled, setIndexPriceListActiveDates, setupPricingContext, startBatchEventattachAdditionalDocumentFields, getCategoryId, getIndexableId, modifyBuiltDocuments, populateDocumentForIndexFieldisEnabled, setEnabled, setPriorityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait@Autowired
public MultiTenantPriceListSolrIndexServiceExtensionHandler(org.broadleafcommerce.core.search.service.solr.index.SolrIndexServiceExtensionManager extensionManager,
MultiTenantStateManager multiTenantStateManager,
MultiTenantDao multiTenantDao)
protected String getPriceListCatalogFieldName()
public org.broadleafcommerce.common.extension.ExtensionResultStatusType attachChildDocuments(org.broadleafcommerce.core.catalog.domain.Indexable indexable,
org.apache.solr.common.SolrInputDocument document,
List<org.broadleafcommerce.core.search.domain.IndexField> fields,
List<org.broadleafcommerce.common.locale.domain.Locale> locales)
attachChildDocuments in interface org.broadleafcommerce.core.search.service.solr.index.SolrIndexServiceExtensionHandlerattachChildDocuments in class com.broadleafcommerce.pricelist.extension.PriceListSolrIndexServiceExtensionHandler@Deprecated public org.broadleafcommerce.common.extension.ExtensionResultStatusType addPropertyValues(org.broadleafcommerce.core.catalog.domain.Indexable indexable, org.broadleafcommerce.core.search.domain.Field field, org.broadleafcommerce.core.search.domain.solr.FieldType fieldType, Map<String,Object> values, String propertyName, List<org.broadleafcommerce.common.locale.domain.Locale> locales) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
attachChildDocuments(Indexable, SolrInputDocument, List, List)addPropertyValues in interface org.broadleafcommerce.core.search.service.solr.index.SolrIndexServiceExtensionHandleraddPropertyValues in class com.broadleafcommerce.pricelist.extension.PriceListSolrIndexServiceExtensionHandlerIllegalAccessExceptionInvocationTargetExceptionNoSuchMethodException@Deprecated protected org.broadleafcommerce.common.extension.ExtensionResultStatusType attachActiveDateFields(org.broadleafcommerce.core.catalog.domain.Sku sku, String skuFieldPrefix, org.apache.solr.common.SolrInputDocument document, org.broadleafcommerce.core.search.service.solr.SolrHelperService shs)
attachChildDocuments(Indexable, SolrInputDocument, List, List)attachActiveDateFields in class com.broadleafcommerce.pricelist.extension.PriceListSolrIndexServiceExtensionHandlerprotected void attachBasicPriceDocumentFields(org.broadleafcommerce.core.catalog.domain.Product product,
com.broadleafcommerce.pricelist.domain.PriceList priceList,
org.apache.solr.common.SolrInputDocument pricingDocument)
attachBasicPriceDocumentFields in class com.broadleafcommerce.pricelist.extension.PriceListSolrIndexServiceExtensionHandlerprotected List<Long> retrieveChildCatalogIdsIncludingParent(org.broadleafcommerce.common.site.domain.Catalog parent)
PriceList.parent - the TEMPLATE level catalog.protected String buildCacheKey(Long catalogId)
Catalog's ID.catalogId - the catalog id of the TEMPLATE level Catalogprotected org.broadleafcommerce.common.site.domain.Catalog getCurrentCatalog()
protected org.broadleafcommerce.common.site.domain.Site getCurrentSite()
Copyright © 2020. All rights reserved.