com.weaverplatform.protocol.model.ChangeNodeIdOperation Maven / Gradle / Ivy
package com.weaverplatform.protocol.model;
public class ChangeNodeIdOperation extends WriteOperation {
private String oldId, oldGraph;
public ChangeNodeIdOperation(String user, String oldId, String oldGraph, String newId) {
super(user, newId);
this.setGraph(oldGraph);
this.oldId = oldId;
this.oldGraph = oldGraph;
}
public String getOldId() {
return oldId;
}
public String getOldGraph() {
return oldGraph;
}
@Override
public WriteOperationAction getAction() {
return WriteOperationAction.CHANGE_NODE_ID;
}
}