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 booleanbooleanThe 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.InternationalizedMessageThis is the label of the target component and is NOT persisted with the augmentation.The timestamp of when this was created.inthashCode()voidsetChangeType(AugmentationChangeType changeType) The type of change this represents.voidsetComponentClassifier(String componentClassifier) The classifier of the component.voidsetComponentType(String componentType) The type of the component.voidsetContainerKey(String containerKey) Reference to the top-levelComponent.getAugmentationKey()in the root-level componentvoidvoidsetJsonPayload(String jsonPayload) The json representation of the component for this augmentation operation.voidsetTargetKey(String targetKey) The augmentation key of the child within the container that is the target of the augmentvoidsetTargetLabel(com.broadleafcommerce.metadata.i18n.InternationalizedMessage targetLabel) This is the label of the target component and is NOT persisted with the augmentation.voidsetTimestamp(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 whenchangeTypeisAugmentationChangeType.INSERTorAugmentationChangeType.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 whenchangeTypeisAugmentationChangeType.INSERTorAugmentationChangeType.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()
-