Class DefaultBatchTransitionService
java.lang.Object
com.broadleafcommerce.sandbox.service.DefaultBatchTransitionService
- All Implemented Interfaces:
BatchTransitionService
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultBatchTransitionService
(ChangeSummaryService<? extends ChangeSummary> changeSummaryService, ChangeSummaryGroupService<? extends ChangeSummaryGroup> changeSummaryGroupService, com.broadleafcommerce.common.messaging.notification.NotificationManager notificationManager, ChangeSummaryRepository<?> repo, com.broadleafcommerce.common.extension.data.DataRouteSupporting route) -
Method Summary
Modifier and TypeMethodDescriptionvoid
flush
(PromoteBatchFlushContext flushContext) Flush changes related to the promote or deploy forward transitions.void
flush
(StateChangeOnlyBatchFlushContext flushContext) Flush changes related to state change only forChangeSummary
andChangeSummaryGroup
.void
flush
(SummaryBasedFlushContext flushContext) Flush other transition lifecycle changes other than promote or deploy.void
post
(SummaryBasedFlushContext flushContext) Execute any additional operations required after the flush based on the information supplied inSummaryBasedFlushContext.PostInformation
.
-
Constructor Details
-
DefaultBatchTransitionService
public DefaultBatchTransitionService(ChangeSummaryService<? extends ChangeSummary> changeSummaryService, ChangeSummaryGroupService<? extends ChangeSummaryGroup> changeSummaryGroupService, com.broadleafcommerce.common.messaging.notification.NotificationManager notificationManager, ChangeSummaryRepository<?> repo, com.broadleafcommerce.common.extension.data.DataRouteSupporting route)
-
-
Method Details
-
flush
@Transactional("sandboxTransactionManager") public void flush(PromoteBatchFlushContext flushContext) Description copied from interface:BatchTransitionService
Flush changes related to the promote or deploy forward transitions.- Specified by:
flush
in interfaceBatchTransitionService
- Parameters:
flushContext
- The context containing a queue ofChangeSummary
andChangeSummaryGroup
state to persist in a batch call
-
flush
@Transactional("sandboxTransactionManager") public void flush(StateChangeOnlyBatchFlushContext flushContext) Description copied from interface:BatchTransitionService
Flush changes related to state change only forChangeSummary
andChangeSummaryGroup
. This does not involve any update of notification states.- Specified by:
flush
in interfaceBatchTransitionService
- Parameters:
flushContext
- The context containing a queue ofChangeSummary
andChangeSummaryGroup
state to persist in a batch call
-
flush
@Transactional("sandboxTransactionManager") public void flush(SummaryBasedFlushContext flushContext) Description copied from interface:BatchTransitionService
Flush other transition lifecycle changes other than promote or deploy.- Specified by:
flush
in interfaceBatchTransitionService
- Parameters:
flushContext
- The context containing a queue ofChangeSummary
state to persist in a batch call
-
post
Description copied from interface:BatchTransitionService
Execute any additional operations required after the flush based on the information supplied inSummaryBasedFlushContext.PostInformation
.- Specified by:
post
in interfaceBatchTransitionService
- Parameters:
flushContext
- Execute any additional operations required after the flush
-