Class ConfirmPaymentsRollbackHandler
java.lang.Object
org.broadleafcommerce.core.checkout.service.workflow.ConfirmPaymentsRollbackHandler
- All Implemented Interfaces:
RollbackHandler<ProcessContext<CheckoutSeed>>
@Component("blConfirmPaymentsRollbackHandler")
public class ConfirmPaymentsRollbackHandler
extends Object
implements RollbackHandler<ProcessContext<CheckoutSeed>>
Rolls back all payments that have been processed or were confirmed in
ValidateAndConfirmPaymentActivity.- Author:
- Phillip Verheyden (phillipuniverse)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final org.apache.commons.logging.Logprotected OrderPaymentServiceprotected OrderServiceprotected org.broadleafcommerce.common.payment.service.PaymentGatewayConfigurationServiceProviderprotected org.broadleafcommerce.common.payment.service.PaymentGatewayCheckoutServiceprotected OrderToPaymentRequestDTOService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrollbackState(Activity<ProcessContext<CheckoutSeed>> activity, ProcessContext<CheckoutSeed> processContext, Map<String, Object> stateConfiguration) Rollback the state of the activity to what it was prior to execution.
-
Field Details
-
LOG
protected static final org.apache.commons.logging.Log LOG -
paymentConfigurationServiceProvider
@Autowired(required=false) @Qualifier("blPaymentGatewayConfigurationServiceProvider") protected org.broadleafcommerce.common.payment.service.PaymentGatewayConfigurationServiceProvider paymentConfigurationServiceProvider -
transactionToPaymentRequestDTOService
-
orderPaymentService
-
paymentGatewayCheckoutService
protected org.broadleafcommerce.common.payment.service.PaymentGatewayCheckoutService paymentGatewayCheckoutService -
orderService
-
-
Constructor Details
-
ConfirmPaymentsRollbackHandler
public ConfirmPaymentsRollbackHandler()
-
-
Method Details
-
rollbackState
public void rollbackState(Activity<ProcessContext<CheckoutSeed>> activity, ProcessContext<CheckoutSeed> processContext, Map<String, Object> stateConfiguration) throws RollbackFailureExceptionDescription copied from interface:RollbackHandlerRollback the state of the activity to what it was prior to execution.- Specified by:
rollbackStatein interfaceRollbackHandler<ProcessContext<CheckoutSeed>>- Parameters:
activity- The Activity instance whose state is being revertedprocessContext- The ProcessContext for the workflowstateConfiguration- Any user-defined state configuration associated with the RollbackHandler- Throws:
RollbackFailureException- if there is a failure during the execution of the rollback
-