Interface PropagationHandler
- All Superinterfaces:
org.springframework.core.Ordered
,PropagationAware
- All Known Implementing Classes:
DefaultPropagationHandler
,VendorSandboxPropagationHandler
Perform catalog propagation of entity changes post deployment, iterating through the catalog
inheritance hierarchy. Handlers participate as part of the operation of
PropagationManager
. Handlers are ordered in the manager component, and the first handler
capable of handling the request for propagation wins and other handlers are ignored. Altered, or
special propagation behavior may be introduced in this way by adding handlers with higher
precedence ordering.- Author:
- Jeff Fischer
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
Methods inherited from interface com.broadleafcommerce.data.tracking.core.transition.PropagationAware
handleCreate, handleDelete, handleUpdate
-
Method Details
-
canHandle
boolean canHandle(Trackable incoming, String incomingCatalog, String parentCatalog, @Nullable Trackable candidate, OperationType changeType) Is this handler capable of handling the propagation process given the contextual information.- Parameters:
incoming
- The Trackable instance that contains the change information to propagateincomingCatalog
- The current catalog in which the propagation is occuringparentCatalog
- The parent catalog up one levelcandidate
- The candidate, if available, representing a catalog override already existing in the incomingCatalog.changeType
- The type of change requested. SeeOperationType
.- Returns:
- Is this handler capable of handling the propagation process
-
getOrder
default int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-