Class ProcessAssetsListener

java.lang.Object
com.broadleafcommerce.asset.messaging.ProcessAssetsListener

public class ProcessAssetsListener extends Object
A listener that accepts triggered scheduled job events of type JOB_TYPE and updates the attributes of all assets in the data store.
Author:
Jon Fleschler (jfleschler)
  • Field Details

  • Constructor Details

  • Method Details

    • listen

      @StreamListener("triggeredJobEventInputProcessAssets") public void listen(org.springframework.messaging.Message<com.broadleafcommerce.common.messaging.domain.ScheduledJobRef> message)
      Queries the data store for all assets and updates their attributes.
      Parameters:
      message - a scheduled job trigger event - will only be handled if it has type JOB_TYPE
    • handleMessage

      protected void handleMessage(org.springframework.messaging.Message<com.broadleafcommerce.common.messaging.domain.ScheduledJobRef> message)
    • getPageSize

      protected int getPageSize(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef scheduledJobRef)
    • buildContextInfoForAsset

      protected com.broadleafcommerce.data.tracking.core.context.ContextInfo buildContextInfoForAsset(Asset asset)
    • buildContextInfo

      protected com.broadleafcommerce.data.tracking.core.context.ContextInfo buildContextInfo(String applicationId, String tenantId)
    • getIdempotentConsumptionService

      protected com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService getIdempotentConsumptionService()
    • getAssetService

      protected AssetService<Asset> getAssetService()
    • getStorageProvider

      protected StorageProvider getStorageProvider()
    • getStorageService

      protected StorageService getStorageService()
    • getRoutes

      @NonNull protected List<AssetDataRouteSupporting> getRoutes()