public abstract class AbstractWorkflowSolrIndexServiceExtensionHandler extends org.broadleafcommerce.common.extension.AbstractExtensionHandler implements WorkflowSolrIndexServiceExtensionHandler
Constructor and Description |
---|
AbstractWorkflowSolrIndexServiceExtensionHandler() |
Modifier and Type | Method and Description |
---|---|
org.broadleafcommerce.common.extension.ExtensionResultStatusType |
attachAdditionalDeleteDocumentFields(org.broadleafcommerce.core.catalog.domain.Indexable indexable,
org.apache.solr.common.SolrInputDocument doc)
When a product is deleted in the sandbox, a new Solr document is created that represents the deleted item.
|
org.broadleafcommerce.common.extension.ExtensionResultStatusType |
buildAdditionalDeploymentDocuments(List<Long> indexableIds,
List<? extends org.broadleafcommerce.core.catalog.domain.Indexable> indexables,
List<org.apache.solr.common.SolrInputDocument> builtDocs)
Invoked after documents are built on a
DeployState.PRODUCTION deployment in Enterprise |
org.broadleafcommerce.common.extension.ExtensionResultStatusType |
getAdditionalDeleteQueryClause(org.broadleafcommerce.common.extension.ExtensionResultHolder<String> erh)
Returns additional strings to append to the production delete query for Solr indexing
|
org.broadleafcommerce.common.extension.ExtensionResultStatusType |
isCurrentSiteIndexable(org.broadleafcommerce.common.extension.ExtensionResultHolder<Boolean> holder) |
getPriority, isEnabled, setEnabled, setPriority
public AbstractWorkflowSolrIndexServiceExtensionHandler()
public org.broadleafcommerce.common.extension.ExtensionResultStatusType getAdditionalDeleteQueryClause(org.broadleafcommerce.common.extension.ExtensionResultHolder<String> erh)
WorkflowSolrIndexServiceExtensionHandler
getAdditionalDeleteQueryClause
in interface WorkflowSolrIndexServiceExtensionHandler
ExtensionResultHolder
has a Stringpublic org.broadleafcommerce.common.extension.ExtensionResultStatusType attachAdditionalDeleteDocumentFields(org.broadleafcommerce.core.catalog.domain.Indexable indexable, org.apache.solr.common.SolrInputDocument doc)
WorkflowSolrIndexServiceExtensionHandler
attachAdditionalDeleteDocumentFields
in interface WorkflowSolrIndexServiceExtensionHandler
public org.broadleafcommerce.common.extension.ExtensionResultStatusType buildAdditionalDeploymentDocuments(List<Long> indexableIds, List<? extends org.broadleafcommerce.core.catalog.domain.Indexable> indexables, List<org.apache.solr.common.SolrInputDocument> builtDocs) throws org.broadleafcommerce.common.exception.ServiceException
WorkflowSolrIndexServiceExtensionHandler
DeployState.PRODUCTION
deployment in EnterprisebuildAdditionalDeploymentDocuments
in interface WorkflowSolrIndexServiceExtensionHandler
indexableIds
- the original id set passed to com.broadleafcommerce.enterprise.workflow.service.search.WorkflowSolrIndexService#getSolrDocuments
indexables
- corresponds to the database-backed entities of indexableIds. Assuming the default filters
were enabled (which is the default) this should be the same size as indexableIdsbuiltDocs
- the SolrInputDocument
s that were already built naturally from a deployment eventorg.broadleafcommerce.common.exception.ServiceException
public org.broadleafcommerce.common.extension.ExtensionResultStatusType isCurrentSiteIndexable(org.broadleafcommerce.common.extension.ExtensionResultHolder<Boolean> holder)
isCurrentSiteIndexable
in interface WorkflowSolrIndexServiceExtensionHandler
Copyright © 2019. All rights reserved.