Class FulfillmentInProcessSubscriptionStatusHandler<SWI extends SubscriptionWithItems>
java.lang.Object
com.broadleafcommerce.subscriptionoperation.service.status.FulfillmentInProcessSubscriptionStatusHandler<SWI>
- All Implemented Interfaces:
SubscriptionStatusHandler<SWI>
public class FulfillmentInProcessSubscriptionStatusHandler<SWI extends SubscriptionWithItems>
extends Object
implements SubscriptionStatusHandler<SWI>
The default handler that validates if the
Subscription status can be changed to
SubscriptionStatuses.FULFILLMENT_IN_PROCESS- Author:
- Dima Myroniuk (dmyroniuk)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandle(UpdateSubscriptionStatusRequest request, SWI swi, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Determines if this handler can handle the status change.voidvalidateStatusChange(UpdateSubscriptionStatusRequest request, SWI swi, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Validates that theUpdateSubscriptionStatusRequest.getRequestedStatus()is a valid next status of theSubscription.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.broadleafcommerce.subscriptionoperation.service.status.SubscriptionStatusHandler
process
-
Constructor Details
-
FulfillmentInProcessSubscriptionStatusHandler
public FulfillmentInProcessSubscriptionStatusHandler()
-
-
Method Details
-
canHandle
public boolean canHandle(UpdateSubscriptionStatusRequest request, SWI swi, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:SubscriptionStatusHandlerDetermines if this handler can handle the status change.- Specified by:
canHandlein interfaceSubscriptionStatusHandler<SWI extends SubscriptionWithItems>- Parameters:
request- the request to modify a subscription's statusswi- theSubscriptionWithItemscontextInfo- context information surrounding sandboxing and multitenant state- Returns:
- true if this handler can handle the status change, otherwise false
-
validateStatusChange
public void validateStatusChange(UpdateSubscriptionStatusRequest request, SWI swi, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:SubscriptionStatusHandlerValidates that theUpdateSubscriptionStatusRequest.getRequestedStatus()is a valid next status of theSubscription.- Specified by:
validateStatusChangein interfaceSubscriptionStatusHandler<SWI extends SubscriptionWithItems>- Parameters:
request- the request to modify a subscription's statusswi- theSubscriptionWithItemsto validatecontextInfo- context information surrounding sandboxing and multitenant state
-