Class DefaultDataFeedProcessHydrationService

java.lang.Object
com.broadleafcommerce.datafeed.service.DefaultDataFeedProcessHydrationService
All Implemented Interfaces:
DataFeedProcessHydrationService

public class DefaultDataFeedProcessHydrationService extends Object implements DataFeedProcessHydrationService
The default implementation for DataFeedProcessHydrationService.
Author:
Dima Myroniuk (dmyroniuk)
  • Constructor Details

    • DefaultDataFeedProcessHydrationService

      public DefaultDataFeedProcessHydrationService(DataFeedProcessExecutionService<DataFeedProcessExecution> processExecutionService, com.broadleafcommerce.data.tracking.core.tenant.service.CommonApplicationService<com.broadleafcommerce.data.tracking.core.tenant.domain.Application> applicationService, com.broadleafcommerce.common.extension.TypeFactory factory)
  • Method Details

    • mapToResponseAndHydrateIfApplicable

      public List<DataFeedProcessResponse> mapToResponseAndHydrateIfApplicable(@NonNull @NonNull List<DataFeedProcess> dataFeedProcesses, @NonNull @NonNull DataFeedHydrationInfo dataFeedHydrationInfo, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Description copied from interface: DataFeedProcessHydrationService
      Converts each DataFeedProcess from the provided list to DataFeedProcessResponse with the additional information. By default, it reads the Applications for the provided processes and sets the application names to the response.
      Specified by:
      mapToResponseAndHydrateIfApplicable in interface DataFeedProcessHydrationService
      Parameters:
      dataFeedProcesses - the data feed processes to hydrate
      dataFeedHydrationInfo - the configuration that is used to specify what information should be hydrated to the response
      contextInfo - context information around multitenant state
      Returns:
      the hydrated list of DataFeedProcessResponse
    • getProcessExecutionService

      protected DataFeedProcessExecutionService<DataFeedProcessExecution> getProcessExecutionService()
    • getApplicationService

      protected com.broadleafcommerce.data.tracking.core.tenant.service.CommonApplicationService<com.broadleafcommerce.data.tracking.core.tenant.domain.Application> getApplicationService()
    • getFactory

      protected com.broadleafcommerce.common.extension.TypeFactory getFactory()