Class AbstractFulfillmentRelatedSingleIndexRequestHandler
- java.lang.Object
-
- com.broadleafcommerce.search.index.common.messaging.handler.AbstractSingleIndexRequestHandler
-
- com.broadleafcommerce.search.index.fulfillment.messaging.handler.AbstractFulfillmentRelatedSingleIndexRequestHandler
-
- Direct Known Subclasses:
FulfillmentChangeSingleIndexRequestHandler,OrderChangeSingleIndexRequestHandler
public abstract class AbstractFulfillmentRelatedSingleIndexRequestHandler extends com.broadleafcommerce.search.index.common.messaging.handler.AbstractSingleIndexRequestHandlerListens for and handles single index requests that ultimately trigger index updates for order fulfillments.- Author:
- Dima Myroniuk (dmyroniuk)
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringCTX_ID_PATH
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractFulfillmentRelatedSingleIndexRequestHandler(OrderFulfillmentService<com.broadleafcommerce.search.fulfillment.core.domain.OrderFulfillment> orderFulfillmentService, 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 Optional<String>getCtxId(com.fasterxml.jackson.databind.JsonNode singleIndexRequest)protected OrderFulfillmentService<com.broadleafcommerce.search.fulfillment.core.domain.OrderFulfillment>getOrderFulfillmentService()protected com.broadleafcommerce.search.index.core.service.ReindexDelegationServicegetReindexDelegationService()protected com.broadleafcommerce.search.index.core.service.ReindexServicegetReindexService()protected com.broadleafcommerce.search.fulfillment.core.domain.OrderFulfillmentreadOrderFulfillmentsByContextId(com.fasterxml.jackson.databind.JsonNode singleIndexRequest)protected List<com.broadleafcommerce.search.fulfillment.core.domain.OrderFulfillment>readOrderFulfillmentsByOrderId(com.fasterxml.jackson.databind.JsonNode singleIndexRequest)
-
-
-
Field Detail
-
CTX_ID_PATH
protected static final String CTX_ID_PATH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractFulfillmentRelatedSingleIndexRequestHandler
protected AbstractFulfillmentRelatedSingleIndexRequestHandler(OrderFulfillmentService<com.broadleafcommerce.search.fulfillment.core.domain.OrderFulfillment> orderFulfillmentService, com.broadleafcommerce.search.index.core.service.ReindexDelegationService reindexDelegationService, com.broadleafcommerce.search.index.core.service.ReindexService reindexService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Detail
-
readOrderFulfillmentsByOrderId
protected List<com.broadleafcommerce.search.fulfillment.core.domain.OrderFulfillment> readOrderFulfillmentsByOrderId(com.fasterxml.jackson.databind.JsonNode singleIndexRequest) throws com.broadleafcommerce.search.api.SearchIndexException
- Throws:
com.broadleafcommerce.search.api.SearchIndexException
-
readOrderFulfillmentsByContextId
@Nullable protected com.broadleafcommerce.search.fulfillment.core.domain.OrderFulfillment readOrderFulfillmentsByContextId(com.fasterxml.jackson.databind.JsonNode singleIndexRequest) throws com.broadleafcommerce.search.api.SearchIndexException- Throws:
com.broadleafcommerce.search.api.SearchIndexException
-
getCtxId
protected Optional<String> getCtxId(com.fasterxml.jackson.databind.JsonNode singleIndexRequest) throws com.broadleafcommerce.search.api.SearchIndexException
- Throws:
com.broadleafcommerce.search.api.SearchIndexException
-
getOrderFulfillmentService
protected OrderFulfillmentService<com.broadleafcommerce.search.fulfillment.core.domain.OrderFulfillment> getOrderFulfillmentService()
-
getReindexDelegationService
protected com.broadleafcommerce.search.index.core.service.ReindexDelegationService getReindexDelegationService()
-
getReindexService
protected com.broadleafcommerce.search.index.core.service.ReindexService getReindexService()
-
-