Class AugmentationUtils
java.lang.Object
com.broadleafcommerce.metadata.core.util.AugmentationUtils
The common utility for the augmentation service.
- Author:
- Dima Myroniuk (dmyroniuk)
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidaddActionComponentAugmentationKeyIfBlank(com.broadleafcommerce.metadata.dsl.core.Component<?> component, String prefix, String actionKey, String componentKey) Adds the augmentation key to the component if it is blank.static voidaddComponentAugmentationKeyIfBlank(com.broadleafcommerce.metadata.dsl.core.Component<?> component, String prefix, String componentKey) Adds the augmentation key to the action component if it is blank.
- 
Field Details- 
COMPONENT_AUGMENTATION_KEY_FORMAT- See Also:
 
- 
ACTION_COMPONENT_AUGMENTATION_KEY_FORMAT- See Also:
 
 
- 
- 
Method Details- 
addComponentAugmentationKeyIfBlankpublic static void addComponentAugmentationKeyIfBlank(com.broadleafcommerce.metadata.dsl.core.Component<?> component, String prefix, String componentKey) Adds the augmentation key to the action component if it is blank. It usedCOMPONENT_AUGMENTATION_KEY_FORMATformat to create the key. For example if the prefix is "generalForm" and the component key is "field:name" then the result will be "generalForm.components[field:name]"- Parameters:
- component- the component to add the augmentation key
- prefix- the key prefix
- componentKey- the component key
 
- 
addActionComponentAugmentationKeyIfBlankpublic static void addActionComponentAugmentationKeyIfBlank(com.broadleafcommerce.metadata.dsl.core.Component<?> component, String prefix, String actionKey, String componentKey) Adds the augmentation key to the component if it is blank. It usedACTION_COMPONENT_AUGMENTATION_KEY_FORMATformat to create the key. For example if the prefix is "generalForm", the action key is "action:create" and the component key is "field:name" then the result will be "generalForm.actions[action:create].components[field:name]"- Parameters:
- component- the component to add the augmentation key
- prefix- the key prefix
- actionKey- the action key
- componentKey- the component key
 
 
-