Class TransitionPackage<D extends Trackable>

java.lang.Object
com.broadleafcommerce.data.tracking.core.TransitionPackage<D>

public class TransitionPackage<D extends Trackable> extends Object
Represents an item to advance or reverse in the sandbox approval flow.
Author:
Jeff Fischer
  • Constructor Details

    • TransitionPackage

      public TransitionPackage(D original, D target)
  • Method Details

    • getOriginal

      public D getOriginal()
      The starting sandbox state for the candidate entity to promote
      Returns:
      The starting sandbox state for the candidate entity to promote
    • getTarget

      public D getTarget()
      The pre-existing sandbox state at the target level matching the contextId of of the original. In cases where a target already existings during a promotion, the changes from the original are merged into the state of the target.
      Returns:
      The pre-existing sandbox state at the target level
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object