java.lang.Object
com.broadleafcommerce.search.fulfillment.core.domain.OrderFulfillment
All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware, com.broadleafcommerce.search.api.domain.Indexable<String>

public class OrderFulfillment extends Object implements com.broadleafcommerce.search.api.domain.Indexable<String>, com.broadleafcommerce.data.tracking.core.ContextStateAware
The indexable order fulfillment payload received from the web request for retrieving order fulfillments, to be mapped into a document for the search engine.
Author:
Dima Myroniuk (dmyroniuk)
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAttribute(String name, Object value)
    Add a value to the JSON data.
    protected boolean
     
    boolean
     
    Get a value from the JSON data.
    com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
    Trackable context state information for this order fulfillment.
    The context ID of the order fulfillment.
    JSON data for the order fulfillment object which isn't already stored in other fields.
    List<com.broadleafcommerce.search.api.domain.translation.Translation>
    Order fulfillment are not translatable, so no translations are provided.
    final com.broadleafcommerce.search.api.type.IndexableType
     
    int
     
    void
    setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
    Trackable context state information for this order fulfillment.
    void
    The context ID of the order fulfillment.
    void
    JSON data for the order fulfillment object which isn't already stored in other fields.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.broadleafcommerce.search.api.domain.Indexable

    isNotFound
  • Constructor Details

    • OrderFulfillment

      public OrderFulfillment()
  • Method Details

    • getType

      public final com.broadleafcommerce.search.api.type.IndexableType getType()
      Specified by:
      getType in interface com.broadleafcommerce.search.api.domain.Indexable<String>
    • getTranslations

      public List<com.broadleafcommerce.search.api.domain.translation.Translation> getTranslations()
      Order fulfillment are not translatable, so no translations are provided.
      Specified by:
      getTranslations in interface com.broadleafcommerce.search.api.domain.Indexable<String>
      Returns:
      empty list
    • addAttribute

      public void addAttribute(String name, Object value)
      Add a value to the JSON data. Necessary for populating the JSON from the payload.
      Parameters:
      name - the attribute name
      value - the attribute value
    • getAttribute

      public Object getAttribute(String name)
      Get a value from the JSON data. Necessary for populating the JSON from the payload.
      Parameters:
      name - the attribute name
    • getJsonMap

      public Map<String,Object> getJsonMap()
      JSON data for the order fulfillment object which isn't already stored in other fields.
      Specified by:
      getJsonMap in interface com.broadleafcommerce.search.api.domain.Indexable<String>
      Returns:
      JSON order fulfillment object data
    • getId

      public String getId()
      The context ID of the order fulfillment.
      Specified by:
      getId in interface com.broadleafcommerce.search.api.domain.Indexable<String>
      Returns:
      the context ID of the order fulfillment
    • getContextState

      public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()
      Trackable context state information for this order fulfillment.
      Specified by:
      getContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
      Returns:
      trackable context state information
    • setJsonMap

      public void setJsonMap(Map<String,Object> jsonMap)
      JSON data for the order fulfillment object which isn't already stored in other fields.
      Parameters:
      jsonMap - JSON order fulfillment object data
    • setId

      public void setId(String id)
      The context ID of the order fulfillment.
      Parameters:
      id - the context ID of the order fulfillment
    • setContextState

      public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
      Trackable context state information for this order fulfillment.
      Specified by:
      setContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
      Parameters:
      contextState - trackable context state information
    • 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