Class DefaultChangeDetail
java.lang.Object
com.broadleafcommerce.data.tracking.core.filtering.domain.DefaultChangeDetail
- All Implemented Interfaces:
ChangeDetail
,Serializable
- Author:
- Jeff Fischer
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The value of the field after it was changedThe user that engaged the changeThe value of the field before it was changedThe name of the field on the business domain class instance that was changedThe CRUD type for the change.The name of the field on the repository domain class instance that was changedThe Java type for the fieldgetLevel()
Used to determine whether or not a change is a user sandbox change, a higher level sandbox change, or a production change.User defined message describing the purpose of the change.Whether or not this change has already been advanced.Used to track a change related to a forward promotion operation.Non-persistent field used to track a change related to a deployment propagation.Whether or not this change was inherited as part of aWorkflowMapper#rebaseMap(Trackable, Trackable)
Whether or not this change represents a rejected changeBase64 encoded, SerializedJavaType
instance used when reconstructing a field value.The local time the change was madeAn indicator of change state for a sandbox entity.int
hashCode()
boolean
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
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
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.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
-
Constructor Details
-
DefaultChangeDetail
public DefaultChangeDetail()
-
-
Method Details
-
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
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
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
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
Description copied from interface:ChangeDetail
The Java type for the field- Specified by:
getFieldType
in interfaceChangeDetail
- Returns:
- The Java type for the field
-
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
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
Description copied from interface:ChangeDetail
The user that engaged the change- Specified by:
getAuthor
in interfaceChangeDetail
- Returns:
- The user that engaged the change
-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-