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 Summary
ConstructorDescriptionDefaultDataFeedProcessHydrationService
(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 Summary
Modifier and TypeMethodDescriptionprotected com.broadleafcommerce.data.tracking.core.tenant.service.CommonApplicationService<com.broadleafcommerce.data.tracking.core.tenant.domain.Application>
protected com.broadleafcommerce.common.extension.TypeFactory
mapToResponseAndHydrateIfApplicable
(@NonNull List<DataFeedProcess> dataFeedProcesses, @NonNull DataFeedHydrationInfo dataFeedHydrationInfo, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Converts eachDataFeedProcess
from the provided list toDataFeedProcessResponse
with the additional information.
-
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 eachDataFeedProcess
from the provided list toDataFeedProcessResponse
with the additional information. By default, it reads theApplications
for the provided processes and sets the application names to the response.- Specified by:
mapToResponseAndHydrateIfApplicable
in interfaceDataFeedProcessHydrationService
- Parameters:
dataFeedProcesses
- the data feed processes to hydratedataFeedHydrationInfo
- the configuration that is used to specify what information should be hydrated to the responsecontextInfo
- context information around multitenant state- Returns:
- the hydrated list of
DataFeedProcessResponse
-
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()
-