Class SaveDomainCommand

java.lang.Object
org.labkey.remoteapi.Command<ResponseType,org.apache.hc.client5.http.classic.methods.HttpPost>
org.labkey.remoteapi.PostCommand<DomainResponse>
org.labkey.remoteapi.domain.SaveDomainCommand
All Implemented Interfaces:
HasRequiredVersion

public class SaveDomainCommand extends PostCommand<DomainResponse>
  • Constructor Details

    • SaveDomainCommand

      public SaveDomainCommand(String schemaName, String queryName)
    • SaveDomainCommand

      public SaveDomainCommand(Long domainId)
  • Method Details

    • getJsonObject

      public org.json.JSONObject getJsonObject()
      Description copied from class: PostCommand
      Returns the JSON object to post or null for no JSON. Override this method to provide parameters as JSON.
      Returns:
      The JSON object to post.
    • createResponse

      protected DomainResponse createResponse(String text, int status, String contentType, org.json.JSONObject json)
      Description copied from class: Command
      Creates an instance of the response class, initialized with the response text, the HTTP status code, and parsed JSONObject.

      Override this method to create an instance of a different class that extends CommandResponse

      Overrides:
      createResponse in class Command<DomainResponse,org.apache.hc.client5.http.classic.methods.HttpPost>
      Parameters:
      text - The response text from the server.
      status - The HTTP status code.
      contentType - The Content-Type header value.
      json - The parsed JSONObject (or null if no JSON was returned).
      Returns:
      An instance of the response object.
    • getDomainDesign

      public Domain getDomainDesign()
      Get the domain design that will be POSTed by this command. The design is mutable.
      Returns:
      reference to the domain design
    • setDomainDesign

      public void setDomainDesign(Domain design)
      Set the domain design that will be POSTed by this command.
      Parameters:
      design - domain design to be used by this command.