org.labkey.remoteapi.domain.DropDomainCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of labkey-client-api Show documentation
Show all versions of labkey-client-api Show documentation
The client-side library for Java developers is a separate JAR from the LabKey Server code base. It can be used by any Java program, including another Java web application.
package org.labkey.remoteapi.domain;
import org.json.simple.JSONObject;
import org.labkey.remoteapi.PostCommand;
public class DropDomainCommand extends PostCommand
{
private String _schemaName;
private String _queryName;
public DropDomainCommand(String schemaName, String queryName)
{
super("property", "deleteDomain");
_schemaName = schemaName;
_queryName = queryName;
}
public String getQueryName()
{
return _queryName;
}
public void setQueryName(String queryName)
{
_queryName = queryName;
}
public String getSchemaName()
{
return _schemaName;
}
public void setSchemaName(String schemaName)
{
_schemaName = schemaName;
}
@Override
public JSONObject getJsonObject()
{
JSONObject json = new JSONObject();
json.put("schemaName", getSchemaName());
json.put("queryName", getQueryName());
return json;
}
}