Class IncrementalDataFeedEntityUpdateManager
java.lang.Object
com.broadleafcommerce.datafeed.service.manager.IncrementalDataFeedEntityUpdateManager
Responsible for high-level operations relating to
IncrementalDataFeedEntityUpdateEvent
and IncrementalDataFeedEntityUpdateRecord
.
While IncrementalDataFeedEntityUpdateRecordService
is in charge of CRUD-related
operations on IncrementalDataFeedEntityUpdateRecord
, this service is a higher-level
abstraction that performs the surrounding logic of processing incremental events. It internally
delegates to IncrementalDataFeedEntityUpdateRecordService
for CRUD operations.
-
Constructor Summary
ConstructorDescriptionIncrementalDataFeedEntityUpdateManager
(DataFeedProcessService<DataFeedProcess> processService, IncrementalDataFeedEntityUpdateRecordService<IncrementalDataFeedEntityUpdateRecord> entityUpdateRecordService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.broadleafcommerce.data.tracking.core.context.ContextInfo
buildContextInfo
(String tenantId, com.broadleafcommerce.data.tracking.core.type.OperationType operationType) protected IncrementalDataFeedEntityUpdateRecord
buildRecord
(IncrementalDataFeedEntityUpdateEvent event, DataFeedProcess process, Instant eventReceivedTime) protected void
createIncrementalRecordsForEvent
(IncrementalDataFeedEntityUpdateEvent event, List<DataFeedProcess> interestedProcesses) protected DataFeedProcessService<DataFeedProcess>
protected com.broadleafcommerce.common.extension.TypeFactory
void
Handles a newly receivedIncrementalDataFeedEntityUpdateEvent
to produce the appropriateIncrementalDataFeedEntityUpdateRecord
s for it.
-
Constructor Details
-
IncrementalDataFeedEntityUpdateManager
public IncrementalDataFeedEntityUpdateManager(DataFeedProcessService<DataFeedProcess> processService, IncrementalDataFeedEntityUpdateRecordService<IncrementalDataFeedEntityUpdateRecord> entityUpdateRecordService, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
handle
Handles a newly receivedIncrementalDataFeedEntityUpdateEvent
to produce the appropriateIncrementalDataFeedEntityUpdateRecord
s for it.- Parameters:
event
- the receivedIncrementalDataFeedEntityUpdateEvent
-
buildContextInfo
protected com.broadleafcommerce.data.tracking.core.context.ContextInfo buildContextInfo(String tenantId, com.broadleafcommerce.data.tracking.core.type.OperationType operationType) -
createIncrementalRecordsForEvent
protected void createIncrementalRecordsForEvent(IncrementalDataFeedEntityUpdateEvent event, List<DataFeedProcess> interestedProcesses) -
buildRecord
protected IncrementalDataFeedEntityUpdateRecord buildRecord(IncrementalDataFeedEntityUpdateEvent event, DataFeedProcess process, Instant eventReceivedTime) -
getProcessService
-
getEntityUpdateRecordService
protected IncrementalDataFeedEntityUpdateRecordService<IncrementalDataFeedEntityUpdateRecord> getEntityUpdateRecordService() -
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-