All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.weaverplatform.protocol.model.CreateRelationOperation Maven / Gradle / Ivy

There is a newer version: 3.27.0
Show newest version
package com.weaverplatform.protocol.model;

/**
 * @author Mohamad Alamili
 */
public class CreateRelationOperation extends CreatePropertyOperation {

  private String targetId, targetGraph;
  private boolean only;

  public CreateRelationOperation(String user, String id, String sourceId, String key, String targetId) {
    this(user, id, sourceId, key, targetId, null, null);
  }

  public CreateRelationOperation(String user, String id, String sourceId, String key, String targetId, String replaceId, String replacesId) {
    super(user, id, sourceId, key, replaceId, replacesId);
    this.targetId = targetId;
    this.only = false;
  }

  public WriteOperationAction getAction(){
    return WriteOperationAction.CREATE_RELATION;
  }

  public void setTargetId(String targetId) {
    this.targetId = targetId;
  }

  public String getTargetGraph() {
    return targetGraph;
  }

  public void setTargetGraph(String targetGraph) {
    this.targetGraph = targetGraph;
  }

  public String getTargetId() {
    return targetId;
  }

  public void setOnly(boolean only) {
    this.only = only;
  }

  public boolean getOnly() {
    return only;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy