Class Augmentation

java.lang.Object
com.broadleafcommerce.metadata.core.domain.Augmentation
All Implemented Interfaces:
Serializable

public class Augmentation extends Object implements Serializable
Author:
Nick Crum ncrum
See Also:
  • Constructor Details

    • Augmentation

      public Augmentation()
  • Method Details

    • getId

      public String getId()
    • getContainerKey

      public String getContainerKey()
      Reference to the top-level Component.getAugmentationKey() in the root-level component
    • getTargetKey

      public String getTargetKey()
      The augmentation key of the child within the container that is the target of the augment
    • getChangeType

      public AugmentationChangeType getChangeType()
      The type of change this represents.
      See Also:
      • for the enumerated options
    • getTimestamp

      public Instant getTimestamp()
      The timestamp of when this was created. Used for determining the order of operations when applying augmentations.
    • getJsonPayload

      public String getJsonPayload()
      The json representation of the component for this augmentation operation. Only non-null when changeType is AugmentationChangeType.INSERT or AugmentationChangeType.PATCH
      Returns:
      the json representation of the component for this augmentation operation
    • getComponentClassifier

      public String getComponentClassifier()
      The classifier of the component.
      Returns:
      the classifier of the component
    • getComponentType

      public String getComponentType()
      The type of the component.
      Returns:
      the type of the component
    • getTargetLabel

      public com.broadleafcommerce.metadata.i18n.InternationalizedMessage getTargetLabel()
      This is the label of the target component and is NOT persisted with the augmentation. It is defined at augmentation time.
    • setId

      public void setId(String id)
    • setContainerKey

      public void setContainerKey(String containerKey)
      Reference to the top-level Component.getAugmentationKey() in the root-level component
    • setTargetKey

      public void setTargetKey(String targetKey)
      The augmentation key of the child within the container that is the target of the augment
    • setChangeType

      public void setChangeType(AugmentationChangeType changeType)
      The type of change this represents.
      See Also:
      • for the enumerated options
    • setTimestamp

      public void setTimestamp(Instant timestamp)
      The timestamp of when this was created. Used for determining the order of operations when applying augmentations.
    • setJsonPayload

      public void setJsonPayload(String jsonPayload)
      The json representation of the component for this augmentation operation. Only non-null when changeType is AugmentationChangeType.INSERT or AugmentationChangeType.PATCH
      Parameters:
      jsonPayload - the json representation of the component for this augmentation operation
    • setComponentClassifier

      public void setComponentClassifier(String componentClassifier)
      The classifier of the component.
      Parameters:
      componentClassifier - the classifier of the component
    • setComponentType

      public void setComponentType(String componentType)
      The type of the component.
      Parameters:
      componentClassifier - the type of the component
    • setTargetLabel

      public void setTargetLabel(com.broadleafcommerce.metadata.i18n.InternationalizedMessage targetLabel)
      This is the label of the target component and is NOT persisted with the augmentation. It is defined at augmentation time.
    • 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