Class AncillaryProductSingleIndexRequestHandler
- java.lang.Object
-
- com.broadleafcommerce.search.index.common.messaging.handler.AbstractSingleIndexRequestHandler
-
- com.broadleafcommerce.search.index.catalog.messaging.handler.AbstractProductSingleIndexRequestHandler
-
- com.broadleafcommerce.search.index.catalog.messaging.handler.AncillaryProductSingleIndexRequestHandler
-
public class AncillaryProductSingleIndexRequestHandler extends AbstractProductSingleIndexRequestHandler
Listens for and handles single index requests originating from changes to an entity that is not a Product itself but is related to a product and thus requires that product to be indexed/reindexed. Examples include adding an asset, product variant, adding a product to a Category, etc.
-
-
Constructor Summary
Constructors Constructor Description AncillaryProductSingleIndexRequestHandler(CatalogService catalogService, com.broadleafcommerce.search.index.core.service.ReindexDelegationService reindexDelegationService, com.broadleafcommerce.search.index.core.service.ReindexService reindexService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getProductCtxIdPath()
Get the path for retrieving the product context ID from a single index request JSON payload.String[]
getSupportedSimpleTypeNames()
void
hook(String singleIndexRequest)
void
processSingleIndexRequest(com.fasterxml.jackson.databind.JsonNode singleIndexRequest)
-
Methods inherited from class com.broadleafcommerce.search.index.catalog.messaging.handler.AbstractProductSingleIndexRequestHandler
getCatalogService, getProductCtxId, getReindexDelegationService, getReindexService, readProducts
-
-
-
-
Constructor Detail
-
AncillaryProductSingleIndexRequestHandler
public AncillaryProductSingleIndexRequestHandler(CatalogService catalogService, com.broadleafcommerce.search.index.core.service.ReindexDelegationService reindexDelegationService, com.broadleafcommerce.search.index.core.service.ReindexService reindexService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Detail
-
hook
@StreamListener("singleIndexRequestInputAncillaryProduct") public void hook(String singleIndexRequest)
- Specified by:
hook
in classcom.broadleafcommerce.search.index.common.messaging.handler.AbstractSingleIndexRequestHandler
-
processSingleIndexRequest
public void processSingleIndexRequest(com.fasterxml.jackson.databind.JsonNode singleIndexRequest)
- Specified by:
processSingleIndexRequest
in classcom.broadleafcommerce.search.index.common.messaging.handler.AbstractSingleIndexRequestHandler
-
getSupportedSimpleTypeNames
public String[] getSupportedSimpleTypeNames()
- Specified by:
getSupportedSimpleTypeNames
in classcom.broadleafcommerce.search.index.common.messaging.handler.AbstractSingleIndexRequestHandler
-
getProductCtxIdPath
protected String getProductCtxIdPath()
Description copied from class:AbstractProductSingleIndexRequestHandler
Get the path for retrieving the product context ID from a single index request JSON payload.- Specified by:
getProductCtxIdPath
in classAbstractProductSingleIndexRequestHandler
- Returns:
- path to product context ID
-
-