Class Augmentation
java.lang.Object
com.broadleafcommerce.metadata.core.domain.Augmentation
- All Implemented Interfaces:
Serializable
- Author:
- Nick Crum ncrum
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The type of change this represents.The classifier of the component.The type of the component.Reference to the top-levelComponent.getAugmentationKey()
in the root-level componentgetId()
The json representation of the component for this augmentation operation.The augmentation key of the child within the container that is the target of the augmentcom.broadleafcommerce.metadata.i18n.InternationalizedMessage
This is the label of the target component and is NOT persisted with the augmentation.The timestamp of when this was created.int
hashCode()
void
setChangeType
(AugmentationChangeType changeType) The type of change this represents.void
setComponentClassifier
(String componentClassifier) The classifier of the component.void
setComponentType
(String componentType) The type of the component.void
setContainerKey
(String containerKey) Reference to the top-levelComponent.getAugmentationKey()
in the root-level componentvoid
void
setJsonPayload
(String jsonPayload) The json representation of the component for this augmentation operation.void
setTargetKey
(String targetKey) The augmentation key of the child within the container that is the target of the augmentvoid
setTargetLabel
(com.broadleafcommerce.metadata.i18n.InternationalizedMessage targetLabel) This is the label of the target component and is NOT persisted with the augmentation.void
setTimestamp
(Instant timestamp) The timestamp of when this was created.toString()
-
Constructor Details
-
Augmentation
public Augmentation()
-
-
Method Details
-
getId
-
getContainerKey
Reference to the top-levelComponent.getAugmentationKey()
in the root-level component -
getTargetKey
The augmentation key of the child within the container that is the target of the augment -
getChangeType
The type of change this represents.- See Also:
-
for the enumerated options
-
getTimestamp
The timestamp of when this was created. Used for determining the order of operations when applying augmentations. -
getJsonPayload
The json representation of the component for this augmentation operation. Only non-null whenchangeType
isAugmentationChangeType.INSERT
orAugmentationChangeType.PATCH
- Returns:
- the json representation of the component for this augmentation operation
-
getComponentClassifier
The classifier of the component.- Returns:
- the classifier of the component
-
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
-
setContainerKey
Reference to the top-levelComponent.getAugmentationKey()
in the root-level component -
setTargetKey
The augmentation key of the child within the container that is the target of the augment -
setChangeType
The type of change this represents.- See Also:
-
for the enumerated options
-
setTimestamp
The timestamp of when this was created. Used for determining the order of operations when applying augmentations. -
setJsonPayload
The json representation of the component for this augmentation operation. Only non-null whenchangeType
isAugmentationChangeType.INSERT
orAugmentationChangeType.PATCH
- Parameters:
jsonPayload
- the json representation of the component for this augmentation operation
-
setComponentClassifier
The classifier of the component.- Parameters:
componentClassifier
- the classifier of the component
-
setComponentType
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
-
equals
-
canEqual
-
hashCode
public int hashCode()
-