Interface PropagationHandler
-
- All Superinterfaces:
org.springframework.core.Ordered
,PropagationAware
- All Known Implementing Classes:
DefaultPropagationHandler
,VendorSandboxPropagationHandler
public interface PropagationHandler extends PropagationAware, org.springframework.core.Ordered
Perform catalog propagation of entity changes post deployment, iterating through the catalog inheritance hierarchy. Handlers participate as part of the operation ofPropagationManager
. 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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
canHandle(Trackable incoming, String incomingCatalog, String parentCatalog, Trackable candidate, OperationType changeType)
Is this handler capable of handling the propagation process given the contextual information.default int
getOrder()
-
Methods inherited from interface com.broadleafcommerce.data.tracking.core.transition.PropagationAware
handleCreate, handleDelete, handleUpdate
-
-
-
-
Method Detail
-
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
-
-