Class CloneEvent<E>

java.lang.Object
com.broadleafcommerce.catalog.clone.messaging.CloneEvent<E>
Type Parameters:
E - the type of entity
Direct Known Subclasses:
ProductCloneEvent

public class CloneEvent<E> extends Object
The event, which is sent after the entity is cloned.
Author:
Dima Myroniuk (dmyroniuk)
  • Constructor Details

    • CloneEvent

      public CloneEvent(E original, E cloned)
    • CloneEvent

      public CloneEvent(E original, E cloned, Map<String,Object> attributes)
  • Method Details

    • getOriginal

      public E getOriginal()

      The original entity.

      Returns:
      the original entity
    • getCloned

      public E getCloned()

      The cloned entity.

      Returns:
      the cloned entity
    • getAttributes

      public Map<String,Object> getAttributes()

      The attributes used to send the additional information.

      Returns:
      the Map with additional attributes
    • setOriginal

      public void setOriginal(E original)

      The original entity.

      Parameters:
      original - the original entity to clone
    • setCloned

      public void setCloned(E cloned)

      The cloned entity.

      Parameters:
      cloned - the cloned entity
    • setAttributes

      public void setAttributes(Map<String,Object> attributes)

      The attributes used to send the additional information.

      Parameters:
      attributes - the Map of attributes
    • 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