Class AugmentationUtils
java.lang.Object
com.broadleafcommerce.metadata.core.util.AugmentationUtils
The common utility for the augmentation service.
- Author:
- Dima Myroniuk (dmyroniuk)
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.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.
-
Field Details
-
COMPONENT_AUGMENTATION_KEY_FORMAT
- See Also:
-
ACTION_COMPONENT_AUGMENTATION_KEY_FORMAT
- See Also:
-
-
Method Details
-
addComponentAugmentationKeyIfBlank
public 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_FORMAT
format 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 keyprefix
- the key prefixcomponentKey
- the component key
-
addActionComponentAugmentationKeyIfBlank
public 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_FORMAT
format 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 keyprefix
- the key prefixactionKey
- the action keycomponentKey
- the component key
-