org.ikasan.designer.event.ConnectorEvent Maven / Gradle / Ivy
package org.ikasan.designer.event;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.ikasan.designer.model.UserData;
public class ConnectorEvent {
public static final String CONNECTOR_ADDED_EVENT_TYPE = "CONNECTOR_ADDED";
public static final String CONNECTOR_REMOVED_EVENT_TYPE = "CONNECTOR_REMOVED";
private String canvasJson;
private String eventType;
private String sourceFigureId;
private UserData sourceUserData;
private String targetFigureId;
private UserData targetUserData;
/**
* Constructor
*
* @param eventType
* @param sourceFigureId
* @param targetFigureId
*/
public ConnectorEvent(@JsonProperty("canvasJson") String canvasJson, @JsonProperty("eventType") String eventType, @JsonProperty("sourceFigureId") String sourceFigureId,
@JsonProperty("sourceUserData") UserData sourceUserData, @JsonProperty("targetUserData") UserData targetUserData, @JsonProperty("targetFigureId") String targetFigureId) {
this.canvasJson = canvasJson;
this.eventType = eventType;
this.sourceFigureId = sourceFigureId;
this.sourceUserData = sourceUserData;
this.targetFigureId = targetFigureId;
this.targetUserData = targetUserData;
}
public String getCanvasJson() {
return canvasJson;
}
public String getEventType() {
return eventType;
}
public String getSourceFigureId() {
return sourceFigureId;
}
public String getTargetFigureId() {
return targetFigureId;
}
public UserData getSourceUserData() {
return sourceUserData;
}
public UserData getTargetUserData() {
return targetUserData;
}
}