Class FulfillmentStatusChangeEvent
java.lang.Object
com.broadleafcommerce.orderoperation.service.messaging.fulfillments.FulfillmentStatusChangeEvent
- All Implemented Interfaces:
Serializable
A message event dispatched after a fulfillment has changed status.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleancom.broadleafcommerce.data.tracking.core.context.ContextInfoTheContextInfoderived from the original request containing tenant and sandbox info.com.broadleafcommerce.order.client.domain.OrderFulfillmentDeprecated.Get the fulfillment id from the event.com.broadleafcommerce.order.client.domain.OrdergetOrder()Deprecated.with large orders this can grow enormously, usesetOrderId(String)insteadGet the order id from the event.The original status of the fulfillment before the change.The original request leading to the status change.inthashCode()voidsetContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfoderived from the original request containing tenant and sandbox info.voidsetFulfillment(com.broadleafcommerce.order.client.domain.OrderFulfillment fulfillment) Deprecated.with large orders this can grow enormously, usesetFulfillmentId(String)insteadvoidsetFulfillmentId(String fulfillmentId) The fulfillmentId of the fulfillment which changed status.voidsetOrder(com.broadleafcommerce.order.client.domain.Order order) Deprecated.with large orders this can grow enormously, usesetOrderId(String)insteadvoidsetOrderId(String orderId) The orderId of the order which the fulfillment came from.voidsetOriginalStatus(String originalStatus) The original status of the fulfillment before the change.voidsetRequest(FulfillmentStatusChangeRequest request) The original request leading to the status change.toString()
-
Constructor Details
-
FulfillmentStatusChangeEvent
public FulfillmentStatusChangeEvent()
-
-
Method Details
-
getOrderId
Get the order id from the event.- Returns:
- the order id
-
getFulfillmentId
Get the fulfillment id from the event.- Returns:
- the fulfillment id
-
getRequest
The original request leading to the status change.- Returns:
- the original request leading to the status change
-
getOriginalStatus
The original status of the fulfillment before the change.- Returns:
- the original status of the fulfillment before the change
-
getFulfillment
Deprecated.with large orders this can grow enormously, usesetFulfillmentId(String)insteadThe fulfillment which changed status.This could be an entire fulfillment which was changed, or the changed part of a newly split fulfillment.
- Returns:
- the fulfillment which changed status
-
getOrder
Deprecated.with large orders this can grow enormously, usesetOrderId(String)insteadThe order which the fulfillment came from.- Returns:
- the order the fulfillment came from
-
getContextInfo
@Nullable public com.broadleafcommerce.data.tracking.core.context.ContextInfo getContextInfo()TheContextInfoderived from the original request containing tenant and sandbox info.- Returns:
- The
ContextInfoderived from the original request
-
setRequest
The original request leading to the status change.- Parameters:
request- the original request leading to the status change
-
setOriginalStatus
The original status of the fulfillment before the change.- Parameters:
originalStatus- the original status of the fulfillment before the change
-
setFulfillment
@Deprecated public void setFulfillment(com.broadleafcommerce.order.client.domain.OrderFulfillment fulfillment) Deprecated.with large orders this can grow enormously, usesetFulfillmentId(String)insteadThe fulfillment which changed status.This could be an entire fulfillment which was changed, or the changed part of a newly split fulfillment.
- Parameters:
fulfillment- the fulfillment which changed status
-
setFulfillmentId
The fulfillmentId of the fulfillment which changed status. -
setOrder
Deprecated.with large orders this can grow enormously, usesetOrderId(String)insteadThe order which the fulfillment came from.- Parameters:
order- the order the fulfillment came from
-
setOrderId
The orderId of the order which the fulfillment came from. -
setContextInfo
public void setContextInfo(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfoderived from the original request containing tenant and sandbox info. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
setFulfillmentId(String)instead