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

org.labkey.remoteapi.domain.CreateDomainCommand Maven / Gradle / Ivy

Go to download

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.

The newest version!
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy