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 TypeMethodDescriptionvoidflush(PromoteBatchFlushContext flushContext) Flush changes related to the promote or deploy forward transitions.voidflush(StateChangeOnlyBatchFlushContext flushContext) Flush changes related to state change only forChangeSummaryandChangeSummaryGroup.voidflush(SummaryBasedFlushContext flushContext) Flush other transition lifecycle changes other than promote or deploy.voidpost(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:BatchTransitionServiceFlush changes related to the promote or deploy forward transitions.- Specified by:
flushin interfaceBatchTransitionService- Parameters:
flushContext- The context containing a queue ofChangeSummaryandChangeSummaryGroupstate to persist in a batch call
-
flush
@Transactional("sandboxTransactionManager") public void flush(StateChangeOnlyBatchFlushContext flushContext) Description copied from interface:BatchTransitionServiceFlush changes related to state change only forChangeSummaryandChangeSummaryGroup. This does not involve any update of notification states.- Specified by:
flushin interfaceBatchTransitionService- Parameters:
flushContext- The context containing a queue ofChangeSummaryandChangeSummaryGroupstate to persist in a batch call
-
flush
@Transactional("sandboxTransactionManager") public void flush(SummaryBasedFlushContext flushContext) Description copied from interface:BatchTransitionServiceFlush other transition lifecycle changes other than promote or deploy.- Specified by:
flushin interfaceBatchTransitionService- Parameters:
flushContext- The context containing a queue ofChangeSummarystate to persist in a batch call
-
post
Description copied from interface:BatchTransitionServiceExecute any additional operations required after the flush based on the information supplied inSummaryBasedFlushContext.PostInformation.- Specified by:
postin interfaceBatchTransitionService- Parameters:
flushContext- Execute any additional operations required after the flush
-