com.weaverplatform.protocol.model.ChangeRelationKeyOperation Maven / Gradle / Ivy
package com.weaverplatform.protocol.model;
public class ChangeRelationKeyOperation extends WriteOperation{
private String relationKey, newRelationKey;
public ChangeRelationKeyOperation(String user, String id, String graph, String relationKey, String newRelationKey) {
super(user, id);
this.setGraph(graph);
this.relationKey = relationKey;
this.newRelationKey = newRelationKey;
}
public String getRelationKey() {
return relationKey;
}
public String getNewRelationKey() {
return newRelationKey;
}
@Override
public WriteOperationAction getAction() {
return WriteOperationAction.CHANGE_RELATION_KEY;
}
}