Class OrderCreatedEvent
java.lang.Object
com.broadleafcommerce.orderoperation.service.messaging.ordercreated.OrderCreatedEvent
- All Implemented Interfaces:
Serializable
A message event dispatched after an order has been created successfully.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionOrderCreatedEvent
(com.broadleafcommerce.order.client.domain.Order order, List<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillments, Map<String, OrderLink> links, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
com.broadleafcommerce.data.tracking.core.context.ContextInfo
TheContextInfo
derived from the original request containing tenant and sandbox info.List<com.broadleafcommerce.order.client.domain.OrderFulfillment>
Deprecated.getLinks()
The links that can be used to read an additional data for the event if needed.com.broadleafcommerce.order.client.domain.Order
getOrder()
Deprecated.to reduce the message size this order shouldn't be used and instead, should be fetched the link inlinks
map.int
hashCode()
void
setContextInfo
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfo
derived from the original request containing tenant and sandbox info.void
setFulfillments
(List<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillments) Deprecated.to reduce the message size the order fulfillments are no longer sent in the message and should be fetched using the link inlinks
map.void
The links that can be used to read an additional data for the event if needed.void
setOrder
(com.broadleafcommerce.order.client.domain.Order order) Deprecated.to reduce the message size this order shouldn't be used and instead, should be fetched the link inlinks
map.toString()
-
Field Details
-
ORDER_LINK_KEY
The key for the link to read the Order by id.- See Also:
-
ORDER_FULFILLMENT_LINK_KEY
The key for the link to read the Order fulfillments by order id.- See Also:
-
-
Constructor Details
-
OrderCreatedEvent
public OrderCreatedEvent() -
OrderCreatedEvent
-
-
Method Details
-
getOrder
Deprecated.to reduce the message size this order shouldn't be used and instead, should be fetched the link inlinks
map.The order object that was created. -
getFulfillments
@Deprecated public List<com.broadleafcommerce.order.client.domain.OrderFulfillment> getFulfillments()Deprecated.to reduce the message size the order fulfillments are no longer sent in the message and should be fetched using the link inlinks
map.The fulfillments created for the order -
getLinks
The links that can be used to read an additional data for the event if needed. These links are meant used instead ofgetOrder()
&getFulfillments()
to reduce the message payload size, esp. for large orders. -
getContextInfo
@Nullable public com.broadleafcommerce.data.tracking.core.context.ContextInfo getContextInfo()TheContextInfo
derived from the original request containing tenant and sandbox info.- Returns:
- The
ContextInfo
derived from the original request
-
setOrder
Deprecated.to reduce the message size this order shouldn't be used and instead, should be fetched the link inlinks
map.The order object that was created. -
setFulfillments
@Deprecated public void setFulfillments(List<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillments) Deprecated.to reduce the message size the order fulfillments are no longer sent in the message and should be fetched using the link inlinks
map.The fulfillments created for the order -
setLinks
The links that can be used to read an additional data for the event if needed. These links are meant used instead ofgetOrder()
&getFulfillments()
to reduce the message payload size, esp. for large orders. -
setContextInfo
public void setContextInfo(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfo
derived from the original request containing tenant and sandbox info. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
links
map.