Class DivergedChange

java.lang.Object
com.broadleafcommerce.sandbox.domain.DivergedChange
All Implemented Interfaces:
Serializable

public class DivergedChange extends Object implements Serializable
A change that has been promoted in advance of the current change represented in a ChangeDetail. The base from which the current ChangeSummary is derived has diverged as a result of these changes.
Author:
Jeff Fischer
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    DivergedChange(com.broadleafcommerce.data.tracking.core.filtering.domain.ChangeDetail changeDetail, String fieldName, boolean conflicting)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
     
    boolean
     
    com.broadleafcommerce.data.tracking.core.filtering.domain.ChangeDetail
    The ChangeDetail information for the change that is promoted in advance of the current user-level ChangeInfo.
    The name of the field for this change
    int
     
    boolean
    Whether or not the advance change is in conflict with a change in the current ChangeInfo
    void
    setConflicting(boolean conflicting)
    Whether or not the advance change is in conflict with a change in the current ChangeInfo
    void
    setFieldName(String fieldName)
    The name of the field for this change
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DivergedChange

      public DivergedChange(com.broadleafcommerce.data.tracking.core.filtering.domain.ChangeDetail changeDetail, String fieldName, boolean conflicting)
  • Method Details

    • getChangeDetail

      public com.broadleafcommerce.data.tracking.core.filtering.domain.ChangeDetail getChangeDetail()
      The ChangeDetail information for the change that is promoted in advance of the current user-level ChangeInfo.
      Returns:
      The Tracking information for the change that is promoted in advance
    • isConflicting

      public boolean isConflicting()
      Whether or not the advance change is in conflict with a change in the current ChangeInfo
      Returns:
      Whether or not the advance change is in conflict with a change in the current ChangeInfo
    • getFieldName

      public String getFieldName()
      The name of the field for this change
      Returns:
      The name of the field for this change
    • setConflicting

      public void setConflicting(boolean conflicting)
      Whether or not the advance change is in conflict with a change in the current ChangeInfo
      Parameters:
      conflicting - Whether or not the advance change is in conflict with a change in the current ChangeInfo
    • setFieldName

      public void setFieldName(String fieldName)
      The name of the field for this change
      Parameters:
      fieldName - The name of the field for this change
    • 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