Class DefaultChangeDetail
- java.lang.Object
-
- com.broadleafcommerce.data.tracking.core.filtering.domain.DefaultChangeDetail
-
- All Implemented Interfaces:
ChangeDetail
,Serializable
public class DefaultChangeDetail extends Object implements ChangeDetail, Serializable
- Author:
- Jeff Fischer
- See Also:
ChangeDetail
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultChangeDetail()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getAfterValue()
The value of the field after it was changedString
getAuthor()
The user that engaged the changeString
getBeforeValue()
The value of the field before it was changedString
getBusinessFieldName()
The name of the field on the business domain class instance that was changedString
getChangeType()
The CRUD type for the change.String
getFieldName()
The name of the field on the repository domain class instance that was changedString
getFieldType()
The Java type for the fieldInteger
getLevel()
Used to determine whether or not a change is a user sandbox change, a higher level sandbox change, or a production change.String
getMessage()
User defined message describing the purpose of the change.Boolean
getObsolete()
Whether or not this change has already been advanced.String
getPromotionId()
Used to track a change related to a forward promotion operation.String
getPropagationId()
Non-persistent field used to track a change related to a deployment propagation.Boolean
getRebased()
Whether or not this change was inherited as part of aWorkflowMapper#rebaseMap(Trackable, Trackable)
Boolean
getRejected()
Whether or not this change represents a rejected changeString
getSerializedFieldType()
Base64 encoded, SerializedJavaType
instance used when reconstructing a field value.Instant
getTimestamp()
The local time the change was madeString
getVersion()
An indicator of change state for a sandbox entity.int
hashCode()
boolean
isEmbeddedCollection()
Whether this change detail is for a field that is an embedded collection.void
setAfterValue(String afterValue)
The value of the field after it was changedvoid
setAuthor(String author)
The user that engaged the changevoid
setBeforeValue(String beforeValue)
The value of the field before it was changedvoid
setBusinessFieldName(String businessFieldName)
The name of the field on the business domain class instance that was changedvoid
setChangeType(String changeType)
The CRUD type for the change.void
setEmbeddedCollection(boolean embeddedCollection)
Set the flag that identifies whether this change detail is for a field that is an embedded collection.void
setFieldName(String fieldName)
The name of the field on the repository domain class instance that was changedvoid
setFieldType(String fieldType)
The Java type for the fieldvoid
setLevel(Integer level)
Used to determine whether or not a change is a user sandbox change, a higher level sandbox change, or a production change.void
setMessage(String message)
User defined message describing the purpose of the change.void
setObsolete(Boolean obsolete)
Whether or not this change has already been advanced.void
setPromotionId(String promotionId)
Used to track a change related to a forward promotion operation.void
setPropagationId(String propagationId)
Non-persistent field used to track a change related to a deployment propagation.void
setRebased(Boolean rebased)
Whether or not this change was inherited as part of aWorkflowMapper#rebaseMap(Trackable, Trackable)
void
setRejected(Boolean rejected)
Whether or not this change represents a rejected changevoid
setSerializedFieldType(String serializedFieldType)
Base64 encoded, SerializedJavaType
instance used when reconstructing a field value.void
setTimestamp(Instant timestamp)
The local time the change was madevoid
setVersion(String version)
An indicator of change state for a sandbox entity.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.broadleafcommerce.data.tracking.core.filtering.domain.ChangeDetail
effectiveEqual
-
-
-
-
Method Detail
-
getFieldName
public String getFieldName()
Description copied from interface:ChangeDetail
The name of the field on the repository domain class instance that was changed- Specified by:
getFieldName
in interfaceChangeDetail
- Returns:
- The name of the field that was changed
-
getBusinessFieldName
public String getBusinessFieldName()
Description copied from interface:ChangeDetail
The name of the field on the business domain class instance that was changed- Specified by:
getBusinessFieldName
in interfaceChangeDetail
- Returns:
- The name of the field that was changed
-
getBeforeValue
public String getBeforeValue()
Description copied from interface:ChangeDetail
The value of the field before it was changed- Specified by:
getBeforeValue
in interfaceChangeDetail
- Returns:
- The value of the field before it was changed
-
getAfterValue
public String getAfterValue()
Description copied from interface:ChangeDetail
The value of the field after it was changed- Specified by:
getAfterValue
in interfaceChangeDetail
- Returns:
- The value of the field after it was changed
-
getFieldType
public String getFieldType()
Description copied from interface:ChangeDetail
The Java type for the field- Specified by:
getFieldType
in interfaceChangeDetail
- Returns:
- The Java type for the field
-
getSerializedFieldType
public String getSerializedFieldType()
Description copied from interface:ChangeDetail
Base64 encoded, SerializedJavaType
instance used when reconstructing a field value.- Specified by:
getSerializedFieldType
in interfaceChangeDetail
- Returns:
- serialized JavaType
-
isEmbeddedCollection
public boolean isEmbeddedCollection()
Description copied from interface:ChangeDetail
Whether this change detail is for a field that is an embedded collection. This is used to enhance performance when buildingContextState
forContextStateAware entities
.- Specified by:
isEmbeddedCollection
in interfaceChangeDetail
- Returns:
- Whether this change detail is for a field that is an embedded collection
-
getTimestamp
public Instant getTimestamp()
Description copied from interface:ChangeDetail
The local time the change was made- Specified by:
getTimestamp
in interfaceChangeDetail
- Returns:
- The local time the change was made
-
getAuthor
public String getAuthor()
Description copied from interface:ChangeDetail
The user that engaged the change- Specified by:
getAuthor
in interfaceChangeDetail
- Returns:
- The user that engaged the change
-
getChangeType
public String getChangeType()
Description copied from interface:ChangeDetail
The CRUD type for the change. SeeOperationType
- Specified by:
getChangeType
in interfaceChangeDetail
- Returns:
- The CRUD type for the change
-
getMessage
public String getMessage()
Description copied from interface:ChangeDetail
User defined message describing the purpose of the change. This is optional.- Specified by:
getMessage
in interfaceChangeDetail
- Returns:
- User defined message describing the purpose of the change
-
getPromotionId
public String getPromotionId()
Description copied from interface:ChangeDetail
Used to track a change related to a forward promotion operation.- Specified by:
getPromotionId
in interfaceChangeDetail
- Returns:
- the identifier for a specific promotion flow
-
getObsolete
public Boolean getObsolete()
Description copied from interface:ChangeDetail
Whether or not this change has already been advanced.- Specified by:
getObsolete
in interfaceChangeDetail
- Returns:
- Whether or not this change has already been advanced.
-
getVersion
public String getVersion()
Description copied from interface:ChangeDetail
An indicator of change state for a sandbox entity. The highest change detail version on an entity in an indicator of it's current state. This is primarily used during deploy operations where it's important to understand the state being requested for deployment.- Specified by:
getVersion
in interfaceChangeDetail
- Returns:
- An indicator of change state for a sandbox entity
-
getRejected
public Boolean getRejected()
Description copied from interface:ChangeDetail
Whether or not this change represents a rejected change- Specified by:
getRejected
in interfaceChangeDetail
- Returns:
- Whether or not this change represents a rejected change
-
getRebased
public Boolean getRebased()
Description copied from interface:ChangeDetail
Whether or not this change was inherited as part of aWorkflowMapper#rebaseMap(Trackable, Trackable)
- Specified by:
getRebased
in interfaceChangeDetail
- Returns:
- Whether or not this change was inherited as part of a
WorkflowMapper#rebaseMap(Trackable, Trackable)
.
-
getPropagationId
public String getPropagationId()
Description copied from interface:ChangeDetail
Non-persistent field used to track a change related to a deployment propagation. This is only used in catalog discriminated entities during deployment.- Specified by:
getPropagationId
in interfaceChangeDetail
- Returns:
- the identifier for a specific propagation flow
-
getLevel
public Integer getLevel()
Description copied from interface:ChangeDetail
Used to determine whether or not a change is a user sandbox change, a higher level sandbox change, or a production change. SeeTrackingLevel
. This value is often used to determine the origin of a change after a rebase operation.- Specified by:
getLevel
in interfaceChangeDetail
- Returns:
- The current state of an change as it relates to sandbox or production status
-
setFieldName
public void setFieldName(String fieldName)
Description copied from interface:ChangeDetail
The name of the field on the repository domain class instance that was changed- Specified by:
setFieldName
in interfaceChangeDetail
- Parameters:
fieldName
- The name of the field that was changed
-
setBusinessFieldName
public void setBusinessFieldName(String businessFieldName)
Description copied from interface:ChangeDetail
The name of the field on the business domain class instance that was changed- Specified by:
setBusinessFieldName
in interfaceChangeDetail
- Parameters:
businessFieldName
- The name of the field that was changed
-
setBeforeValue
public void setBeforeValue(String beforeValue)
Description copied from interface:ChangeDetail
The value of the field before it was changed- Specified by:
setBeforeValue
in interfaceChangeDetail
- Parameters:
beforeValue
- The value of the field before it was changed
-
setAfterValue
public void setAfterValue(String afterValue)
Description copied from interface:ChangeDetail
The value of the field after it was changed- Specified by:
setAfterValue
in interfaceChangeDetail
- Parameters:
afterValue
- The value of the field after it was changed
-
setFieldType
public void setFieldType(String fieldType)
Description copied from interface:ChangeDetail
The Java type for the field- Specified by:
setFieldType
in interfaceChangeDetail
- Parameters:
fieldType
- The Java type for the field
-
setSerializedFieldType
public void setSerializedFieldType(String serializedFieldType)
Description copied from interface:ChangeDetail
Base64 encoded, SerializedJavaType
instance used when reconstructing a field value.- Specified by:
setSerializedFieldType
in interfaceChangeDetail
- Parameters:
serializedFieldType
- serialized JavaType
-
setEmbeddedCollection
public void setEmbeddedCollection(boolean embeddedCollection)
Description copied from interface:ChangeDetail
Set the flag that identifies whether this change detail is for a field that is an embedded collection. This is used to enhance performance when buildingContextState
forContextStateAware entities
.- Specified by:
setEmbeddedCollection
in interfaceChangeDetail
- Parameters:
embeddedCollection
- Whether this change detail is for a field that is an embedded collection
-
setTimestamp
public void setTimestamp(Instant timestamp)
Description copied from interface:ChangeDetail
The local time the change was made- Specified by:
setTimestamp
in interfaceChangeDetail
- Parameters:
timestamp
- The local time the change was made
-
setAuthor
public void setAuthor(String author)
Description copied from interface:ChangeDetail
The user that engaged the change- Specified by:
setAuthor
in interfaceChangeDetail
- Parameters:
author
- The user that engaged the change
-
setChangeType
public void setChangeType(String changeType)
Description copied from interface:ChangeDetail
The CRUD type for the change. SeeOperationType
- Specified by:
setChangeType
in interfaceChangeDetail
- Parameters:
changeType
- The CRUD type for the change
-
setMessage
public void setMessage(String message)
Description copied from interface:ChangeDetail
User defined message describing the purpose of the change. This is optional.- Specified by:
setMessage
in interfaceChangeDetail
- Parameters:
message
- User defined message describing the purpose of the change
-
setPromotionId
public void setPromotionId(String promotionId)
Description copied from interface:ChangeDetail
Used to track a change related to a forward promotion operation.- Specified by:
setPromotionId
in interfaceChangeDetail
- Parameters:
promotionId
- the identifier for a specific promotion flow
-
setObsolete
public void setObsolete(Boolean obsolete)
Description copied from interface:ChangeDetail
Whether or not this change has already been advanced.- Specified by:
setObsolete
in interfaceChangeDetail
- Parameters:
obsolete
- Whether or not this change has already been advanced.
-
setVersion
public void setVersion(String version)
Description copied from interface:ChangeDetail
An indicator of change state for a sandbox entity. The highest change detail version on an entity in an indicator of it's current state. This is primarily used during deploy operations where it's important to understand the state being requested for deployment.- Specified by:
setVersion
in interfaceChangeDetail
- Parameters:
version
- An indicator of change state for a sandbox entity
-
setRejected
public void setRejected(Boolean rejected)
Description copied from interface:ChangeDetail
Whether or not this change represents a rejected change- Specified by:
setRejected
in interfaceChangeDetail
- Parameters:
rejected
- Whether or not this change represents a rejected change
-
setRebased
public void setRebased(Boolean rebased)
Description copied from interface:ChangeDetail
Whether or not this change was inherited as part of aWorkflowMapper#rebaseMap(Trackable, Trackable)
- Specified by:
setRebased
in interfaceChangeDetail
- Parameters:
rebased
- Whether or not this change was inherited as part of aWorkflowMapper#rebaseMap(Trackable, Trackable)
-
setPropagationId
public void setPropagationId(String propagationId)
Description copied from interface:ChangeDetail
Non-persistent field used to track a change related to a deployment propagation. This is only used in catalog discriminated entities during deployment.- Specified by:
setPropagationId
in interfaceChangeDetail
- Parameters:
propagationId
- the identifier for a specific propagation flow
-
setLevel
public void setLevel(Integer level)
Description copied from interface:ChangeDetail
Used to determine whether or not a change is a user sandbox change, a higher level sandbox change, or a production change. SeeTrackingLevel
. This value is often used to determine the origin of a change after a rebase operation.- Specified by:
setLevel
in interfaceChangeDetail
-
canEqual
protected boolean canEqual(Object other)
-
-