Class NodesAlreadyConnectedPartialValidator
java.lang.Object
com.hybris.backoffice.workflow.designer.handler.connection.validator.NodesAlreadyConnectedPartialValidator
- All Implemented Interfaces:
WorkflowConnectionPartialValidator,org.springframework.core.Ordered
public class NodesAlreadyConnectedPartialValidator
extends Object
implements WorkflowConnectionPartialValidator
Checks if two nodes of added edge is already connected
-
Field Summary
FieldsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEFields inherited from interface com.hybris.backoffice.workflow.designer.handler.connection.validator.WorkflowConnectionPartialValidator
MEDIUM_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanareNodesAlreadyConnected(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext networkChartContext, com.hybris.cockpitng.components.visjs.network.data.Edge edge) intgetOrder()voidsetConnectionFinder(ConnectionFinder connectionFinder) voidsetNodeTypeService(NodeTypeService nodeTypeService) voidsetOrder(int order) validate(ValidationContext context) Validates workflow based on theValidationContextpassed
-
Field Details
-
EVENT_TYPE_ALREADY_CONNECTED
- See Also:
-
-
Constructor Details
-
NodesAlreadyConnectedPartialValidator
public NodesAlreadyConnectedPartialValidator()
-
-
Method Details
-
validate
Description copied from interface:WorkflowConnectionPartialValidatorValidates workflow based on theValidationContextpassed- Specified by:
validatein interfaceWorkflowConnectionPartialValidator- Parameters:
context- context of the validation- Returns:
- result containing potential violations
-
areNodesAlreadyConnected
protected boolean areNodesAlreadyConnected(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext networkChartContext, com.hybris.cockpitng.components.visjs.network.data.Edge edge) -
getConnectionFinder
-
setConnectionFinder
-
getNodeTypeService
-
setNodeTypeService
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered- Specified by:
getOrderin interfaceWorkflowConnectionPartialValidator
-
setOrder
public void setOrder(int order)
-