Interface ExchangeObject
- All Known Implementing Classes:
AbstractExchangeObject
,Attribute
,CategoryRef
,ComprehensiveProduct
,EntityExchangeObject
,ExchangeEntityAsset
,Prices
,ProductAsset
,ProductTag
,SkuInventory
,Translation
,Variant
public interface ExchangeObject
Parent class that contains correlation Ids to re-create the structure
- Author:
- Kelly Tisdell (ktisdell)
-
Method Summary
Modifier and TypeMethodDescriptiondefault com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
default String
getId()
boolean
default void
setContextState
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) void
setCorrelationId
(String correlationId) default void
Set the id of the entityvoid
setNewlyCreated
(boolean newlyCreated) Set to true if the object is newly created.void
setParentCorrelationId
(String parentCorrelationId)
-
Method Details
-
getId
- Returns:
- the id of the entity
-
setId
Set the id of the entity- Parameters:
id
- the id of the entity
-
getParentCorrelationId
String getParentCorrelationId() -
setParentCorrelationId
-
getCorrelationId
String getCorrelationId() -
setCorrelationId
-
getContextState
@Nullable default com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState() -
setContextState
default void setContextState(@Nullable com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) -
setNewlyCreated
void setNewlyCreated(boolean newlyCreated) Set to true if the object is newly created. This may not be applicable to all objects.- Parameters:
newlyCreated
- true if the object is newly created
-
isNewlyCreated
boolean isNewlyCreated()- Returns:
- true if the object is newly created. Note that this is not always applicable to all objects.
-