Interface FulfillmentStatusChangeHandler
-
- All Known Implementing Classes:
AbstractFulfillmentStatusChangeHandler
,CancelStatusChangeHandler
,CapturingPaymentStatusChangeHandler
,FulfilledStatusChangeHandler
,FulfillFailedStatusChangeHandler
,FulfillingStatusChangeHandler
,PaymentCapturedStatusChangeHandler
,PaymentCaptureFailedStatusChangeHandler
public interface FulfillmentStatusChangeHandler
Handles changing the status of a fulfillment based on aFulfillmentStatusChangeRequest
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canHandle(FulfillmentStatusChangeRequest request, com.broadleafcommerce.order.client.domain.OrderFulfillment fulfillment)
Determine if this handler can process the givenFulfillmentStatusChangeRequest
.com.broadleafcommerce.order.client.domain.OrderFulfillment
process(FulfillmentStatusChangeRequest request, com.broadleafcommerce.order.client.domain.OrderFulfillment fulfillment, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Perform the status change requested by theFulfillmentStatusChangeRequest
.
-
-
-
Method Detail
-
canHandle
boolean canHandle(FulfillmentStatusChangeRequest request, com.broadleafcommerce.order.client.domain.OrderFulfillment fulfillment)
Determine if this handler can process the givenFulfillmentStatusChangeRequest
.- Parameters:
request
- the status change requestfulfillment
- the fulfillment to have its status changed- Returns:
- whether this handler can process the status change request
-
process
com.broadleafcommerce.order.client.domain.OrderFulfillment process(FulfillmentStatusChangeRequest request, com.broadleafcommerce.order.client.domain.OrderFulfillment fulfillment, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Perform the status change requested by theFulfillmentStatusChangeRequest
.- Parameters:
request
- the status change requestfulfillment
- the fulfillment to have its status changedcontextInfo
- context information around sandbox and multitenant state- Returns:
- the fulfillment, or part of it, which has changed status
-
-