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.AbstractSingleIndexRequestHandler
Listens 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 final String
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    protected Optional<String>
    getCtxId(com.fasterxml.jackson.databind.JsonNode singleIndexRequest)
     
    protected OrderFulfillmentService<com.broadleafcommerce.search.fulfillment.core.domain.OrderFulfillment>
     
    protected com.broadleafcommerce.search.index.core.service.ReindexDelegationService
     
    protected com.broadleafcommerce.search.index.core.service.ReindexService
     
    protected com.broadleafcommerce.search.fulfillment.core.domain.OrderFulfillment
    readOrderFulfillmentsByContextId(com.fasterxml.jackson.databind.JsonNode singleIndexRequest)
     
    protected List<com.broadleafcommerce.search.fulfillment.core.domain.OrderFulfillment>
    readOrderFulfillmentsByOrderId(com.fasterxml.jackson.databind.JsonNode singleIndexRequest)
     

    Methods inherited from class com.broadleafcommerce.search.index.common.messaging.handler.AbstractSingleIndexRequestHandler

    getObjectMapper, getSupportedSimpleTypeNames, handle, hook, isValidType, processSingleIndexRequest

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • 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 Details

    • 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()