Class OrderFulfillment
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(String name, Object value) Add a value to the JSON data.protected booleanbooleangetAttribute(String name) Get a value from the JSON data.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateTrackable context state information for this order fulfillment.getId()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.IndexableTypegetType()inthashCode()voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) Trackable context state information for this order fulfillment.voidThe context ID of the order fulfillment.voidsetJsonMap(Map<String, Object> jsonMap) JSON data for the order fulfillment object which isn't already stored in other fields.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
getTypein interfacecom.broadleafcommerce.search.api.domain.Indexable<String>
-
getTranslations
Order fulfillment are not translatable, so no translations are provided.- Specified by:
getTranslationsin interfacecom.broadleafcommerce.search.api.domain.Indexable<String>- Returns:
- empty list
-
addAttribute
Add a value to the JSON data. Necessary for populating the JSON from the payload.- Parameters:
name- the attribute namevalue- the attribute value
-
getAttribute
Get a value from the JSON data. Necessary for populating the JSON from the payload.- Parameters:
name- the attribute name
-
getJsonMap
JSON data for the order fulfillment object which isn't already stored in other fields.- Specified by:
getJsonMapin interfacecom.broadleafcommerce.search.api.domain.Indexable<String>- Returns:
- JSON order fulfillment object data
-
getId
The context ID of the order fulfillment.- Specified by:
getIdin interfacecom.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:
getContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Returns:
- trackable context state information
-
setJsonMap
JSON data for the order fulfillment object which isn't already stored in other fields.- Parameters:
jsonMap- JSON order fulfillment object data
-
setId
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:
setContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Parameters:
contextState- trackable context state information
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-