Class EmbeddedContextState
java.lang.Object
com.broadleafcommerce.data.tracking.core.EmbeddedContextState
- All Implemented Interfaces:
Serializable
A subset of information from
Tracking
placed on EmbeddedContextStateAware
embedded collections members of business domains implementing ContextStateAware
. Useful
for API callers when making determinations regarding changes to particular items within an
embedded collection. These changes would otherwise be obscured because ContextState
does
not provide information beyond that a collection was modified, not which items were changed and
how.- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
List of fields on theEmbeddedContextStateAware
item to which this state belongs that were changed.int
hashCode()
boolean
Whether theEmbeddedContextStateAware
item to which this state belongs has changed.void
setChanged
(boolean changed) Whether theEmbeddedContextStateAware
item to which this state belongs has changed.void
setFieldsChanged
(List<String> fieldsChanged) List of fields on theEmbeddedContextStateAware
item to which this state belongs that were changed.toString()
-
Constructor Details
-
EmbeddedContextState
public EmbeddedContextState() -
EmbeddedContextState
-
-
Method Details
-
isChanged
public boolean isChanged()Whether theEmbeddedContextStateAware
item to which this state belongs has changed. Defaults to true since, otherwise, the owning item's contextState would likely be null.- Returns:
- Whether the
EmbeddedContextStateAware
item to which this state belongs has changed.
-
getFieldsChanged
List of fields on theEmbeddedContextStateAware
item to which this state belongs that were changed.- Returns:
- List of fields on the
EmbeddedContextStateAware
item to which this state belongs that were changed.
-
setChanged
public void setChanged(boolean changed) Whether theEmbeddedContextStateAware
item to which this state belongs has changed. Defaults to true since, otherwise, the owning item's contextState would likely be null.- Parameters:
changed
- Whether theEmbeddedContextStateAware
item to which this state belongs has changed.
-
setFieldsChanged
List of fields on theEmbeddedContextStateAware
item to which this state belongs that were changed.- Parameters:
fieldsChanged
- List of fields on theEmbeddedContextStateAware
item to which this state belongs that were changed.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-