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

org.molgenis.dataexplorer.controller.DataRequest Maven / Gradle / Ivy

package org.molgenis.dataexplorer.controller;

import java.util.List;
import javax.validation.constraints.NotNull;
import org.molgenis.data.Entity;
import org.molgenis.data.support.QueryImpl;

public class DataRequest {
  public enum ColNames {
    ATTRIBUTE_NAMES,
    ATTRIBUTE_LABELS
  }

  public enum EntityValues {
    ENTITY_LABELS,
    ENTITY_IDS
  }

  public enum DownloadType {
    DOWNLOAD_TYPE_CSV,
    DOWNLOAD_TYPE_XLSX
  }

  @NotNull private String entityTypeId;
  @NotNull private QueryImpl query;
  @NotNull private List attributeNames;
  @NotNull private ColNames colNames;
  @NotNull private EntityValues entityValues;
  @NotNull private DownloadType downloadType;

  public String getEntityName() {
    return entityTypeId;
  }

  public void setEntityName(String entityTypeId) {
    this.entityTypeId = entityTypeId;
  }

  public QueryImpl getQuery() {
    return query;
  }

  public void setQuery(QueryImpl query) {
    this.query = query;
  }

  public List getAttributeNames() {
    return attributeNames;
  }

  public void setAttributeNames(List attributeNames) {
    this.attributeNames = attributeNames;
  }

  public ColNames getColNames() {
    return colNames;
  }

  public void setColNames(ColNames colNames) {
    this.colNames = colNames;
  }

  public DownloadType getDownloadType() {
    return downloadType;
  }

  public void setDownloadType(DownloadType downloadType) {
    this.downloadType = downloadType;
  }

  public EntityValues getEntityValues() {
    return entityValues;
  }

  public void setEntityValues(EntityValues entityValues) {
    this.entityValues = entityValues;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy