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:
  • Constructor Details

    • DefaultChangeDetail

      public DefaultChangeDetail()
  • Method Details

    • 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 interface ChangeDetail
      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 interface ChangeDetail
      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 interface ChangeDetail
      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 interface ChangeDetail
      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 interface ChangeDetail
      Returns:
      The Java type for the field
    • getSerializedFieldType

      public String getSerializedFieldType()
      Description copied from interface: ChangeDetail
      Base64 encoded, Serialized JavaType instance used when reconstructing a field value.
      Specified by:
      getSerializedFieldType in interface ChangeDetail
      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 building ContextState for ContextStateAware entities.
      Specified by:
      isEmbeddedCollection in interface ChangeDetail
      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 interface ChangeDetail
      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 interface ChangeDetail
      Returns:
      The user that engaged the change
    • getChangeType

      public String getChangeType()
      Description copied from interface: ChangeDetail
      The CRUD type for the change. See OperationType
      Specified by:
      getChangeType in interface ChangeDetail
      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 interface ChangeDetail
      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 interface ChangeDetail
      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 interface ChangeDetail
      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 interface ChangeDetail
      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 interface ChangeDetail
      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 a WorkflowMapper#rebaseMap(Trackable, Trackable)
      Specified by:
      getRebased in interface ChangeDetail
      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 interface ChangeDetail
      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. See TrackingLevel. This value is often used to determine the origin of a change after a rebase operation.
      Specified by:
      getLevel in interface ChangeDetail
      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 interface ChangeDetail
      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 interface ChangeDetail
      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 interface ChangeDetail
      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 interface ChangeDetail
      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 interface ChangeDetail
      Parameters:
      fieldType - The Java type for the field
    • setSerializedFieldType

      public void setSerializedFieldType(String serializedFieldType)
      Description copied from interface: ChangeDetail
      Base64 encoded, Serialized JavaType instance used when reconstructing a field value.
      Specified by:
      setSerializedFieldType in interface ChangeDetail
      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 building ContextState for ContextStateAware entities.
      Specified by:
      setEmbeddedCollection in interface ChangeDetail
      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 interface ChangeDetail
      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 interface ChangeDetail
      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. See OperationType
      Specified by:
      setChangeType in interface ChangeDetail
      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 interface ChangeDetail
      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 interface ChangeDetail
      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 interface ChangeDetail
      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 interface ChangeDetail
      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 interface ChangeDetail
      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 a WorkflowMapper#rebaseMap(Trackable, Trackable)
      Specified by:
      setRebased in interface ChangeDetail
      Parameters:
      rebased - Whether or not this change was inherited as part of a WorkflowMapper#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 interface ChangeDetail
      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. See TrackingLevel. This value is often used to determine the origin of a change after a rebase operation.
      Specified by:
      setLevel in interface ChangeDetail
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object