Interface AugmentationProcessor
-
- All Known Implementing Classes:
FieldAugmentationProcessor,GroupAugmentationProcessor,SelectFieldAugmentationProcessor
public interface AugmentationProcessorThe processor that is used to processAugmentationChangeType.INSERTandAugmentationChangeType.PATCHoperations.- Author:
- Dima Myroniuk (dmyroniuk)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanHandleInsert(com.broadleafcommerce.metadata.dsl.core.Component<?> parent, Augmentation augmentation)Check if this service can process the augmentation for theAugmentationChangeType.INSERTchange.booleancanHandleUpdate(com.broadleafcommerce.metadata.dsl.core.Component<?> component, Augmentation augmentation)Check if this service can process the augmentation for theAugmentationChangeType.PATCHchange.com.broadleafcommerce.metadata.dsl.core.Component<?>processInsert(com.broadleafcommerce.metadata.dsl.core.Component<?> parent, Augmentation augmentation)Adds the new component to the specified parent component.com.broadleafcommerce.metadata.dsl.core.Component<?>processUpdate(com.broadleafcommerce.metadata.dsl.core.Component<?> component, Augmentation augmentation)Updates the specified component.
-
-
-
Method Detail
-
canHandleInsert
boolean canHandleInsert(com.broadleafcommerce.metadata.dsl.core.Component<?> parent, Augmentation augmentation)Check if this service can process the augmentation for theAugmentationChangeType.INSERTchange.- Parameters:
parent- the parent component to insert the augmented componentaugmentation- the augmentation to apply- Returns:
- true if this processor can process the augmentation
-
canHandleUpdate
boolean canHandleUpdate(com.broadleafcommerce.metadata.dsl.core.Component<?> component, Augmentation augmentation)Check if this service can process the augmentation for theAugmentationChangeType.PATCHchange.- Parameters:
component- the component to update with the specified augmentationaugmentation- the augmentation to apply- Returns:
- true if this processor can process the augmentation
-
processInsert
com.broadleafcommerce.metadata.dsl.core.Component<?> processInsert(com.broadleafcommerce.metadata.dsl.core.Component<?> parent, Augmentation augmentation)Adds the new component to the specified parent component.- Parameters:
parent- the parent component to insert the new componentaugmentation- the augmentation to apply- Returns:
- the inserted component
-
processUpdate
com.broadleafcommerce.metadata.dsl.core.Component<?> processUpdate(com.broadleafcommerce.metadata.dsl.core.Component<?> component, Augmentation augmentation)Updates the specified component.- Parameters:
component- the component to updateaugmentation- the augmentation to apply- Returns:
- the updated component
-
-