java.lang.Object
com.broadleafcommerce.orderoperation.service.messaging.ordercreated.OrderCreatedEvent
All Implemented Interfaces:
Serializable

public class OrderCreatedEvent extends Object implements Serializable
A message event dispatched after an order has been created successfully.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The key for the link to read the Order fulfillments by order id.
    static final String
    The key for the link to read the Order by id.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    OrderCreatedEvent(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 Type
    Method
    Description
    protected boolean
     
    boolean
     
    com.broadleafcommerce.data.tracking.core.context.ContextInfo
    The ContextInfo derived from the original request containing tenant and sandbox info.
    List<com.broadleafcommerce.order.client.domain.OrderFulfillment>
    Deprecated.
    to reduce the message size the order fulfillments are no longer sent in the message and should be fetched using the link in links map.
    The links that can be used to read an additional data for the event if needed.
    com.broadleafcommerce.order.client.domain.Order
    Deprecated.
    to reduce the message size this order shouldn't be used and instead, should be fetched the link in links map.
    int
     
    void
    setContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    The ContextInfo 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 in links 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 in links map.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • OrderCreatedEvent

      public OrderCreatedEvent()
    • OrderCreatedEvent

      public OrderCreatedEvent(com.broadleafcommerce.order.client.domain.Order order, List<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillments, Map<String,OrderLink> links, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
  • Method Details

    • getOrder

      @Deprecated public 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 in links 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 in links map.
      The fulfillments created for the order
      See Also:
    • getLinks

      public Map<String,OrderLink> getLinks()
      The links that can be used to read an additional data for the event if needed. These links are meant used instead of getOrder() & getFulfillments() to reduce the message payload size, esp. for large orders.
    • getContextInfo

      @Nullable public com.broadleafcommerce.data.tracking.core.context.ContextInfo getContextInfo()
      The ContextInfo derived from the original request containing tenant and sandbox info.
      Returns:
      The ContextInfo derived from the original request
    • setOrder

      @Deprecated public 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 in links 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 in links map.
      The fulfillments created for the order
      See Also:
    • setLinks

      public void setLinks(Map<String,OrderLink> links)
      The links that can be used to read an additional data for the event if needed. These links are meant used instead of getOrder() & getFulfillments() to reduce the message payload size, esp. for large orders.
    • setContextInfo

      public void setContextInfo(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      The ContextInfo derived from the original request containing tenant and sandbox info.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object