Class 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 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 class com.broadleafcommerce.search.index.common.messaging.handler.AbstractSingleIndexRequestHandler
      • processSingleIndexRequest

        public void processSingleIndexRequest​(com.fasterxml.jackson.databind.JsonNode singleIndexRequest)
        Specified by:
        processSingleIndexRequest in class com.broadleafcommerce.search.index.common.messaging.handler.AbstractSingleIndexRequestHandler
      • getSupportedSimpleTypeNames

        public String[] getSupportedSimpleTypeNames()
        Specified by:
        getSupportedSimpleTypeNames in class com.broadleafcommerce.search.index.common.messaging.handler.AbstractSingleIndexRequestHandler