org.labkey.remoteapi.domain.CreateDomainCommand 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 java.util.HashMap;
import java.util.Map;
public class CreateDomainCommand extends AbstractDomainUpdateCommand
{
private String _kind;
private Map _options = new HashMap<>();
public CreateDomainCommand(String kind, String domainName)
{
super("property", "createDomain");
_kind = kind;
getDomainDesign().setName(domainName);
}
@Override
public JSONObject getJsonObject()
{
JSONObject result = super.getJsonObject();
result.put("kind", _kind);
result.put("options", _options);
return result;
}
public String getKind()
{
return _kind;
}
public void setKind(String kind)
{
_kind = kind;
}
public Map getOptions()
{
return _options;
}
public void setOptions(Map options)
{
_options = options;
}
}