Package org.labkey.remoteapi.query
Class MoveRowsCommand
java.lang.Object
org.labkey.remoteapi.Command<ResponseType,org.apache.hc.client5.http.classic.methods.HttpPost>
org.labkey.remoteapi.PostCommand<SaveRowsResponse>
org.labkey.remoteapi.query.SaveRowsCommand
org.labkey.remoteapi.query.MoveRowsCommand
- All Implemented Interfaces:
HasRequiredVersion
Command for moving rows from a compatible schema table. The user associated
with the connection used when executing this command must have
permission to update data for the source container and insert data
for the target container.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.labkey.remoteapi.query.SaveRowsCommand
SaveRowsCommand.AuditBehavior
Nested classes/interfaces inherited from class org.labkey.remoteapi.Command
Command.CommonParameters, Command.Response
-
Field Summary
Fields inherited from class org.labkey.remoteapi.Command
CONTENT_TYPE_JSON
-
Constructor Summary
ConstructorsConstructorDescriptionMoveRowsCommand
(String targetContainerPath, String schemaName, String queryName) Constructs a MoveRowsCommand for the given targetContainerPath, schemaName, and queryName. -
Method Summary
Modifier and TypeMethodDescriptionorg.json.JSONObject
Dynamically builds the JSON object to send based on the current schema name, query name and rows list.Methods inherited from class org.labkey.remoteapi.query.SaveRowsCommand
addRow, createResponse, getAuditBehavior, getAuditUserComment, getExtraContext, getQueryName, getRows, getSchemaName, setAuditBehavior, setAuditUserComment, setExtraContext, setQueryName, setRows, setSchemaName
Methods inherited from class org.labkey.remoteapi.PostCommand
createRequest
Methods inherited from class org.labkey.remoteapi.Command
_execute, createParameterMap, execute, getActionName, getControllerName, getHttpRequest, getParameters, getParamValueAsString, getRequiredVersion, getTimeout, setRequiredVersion, setTimeout
-
Constructor Details
-
MoveRowsCommand
Constructs a MoveRowsCommand for the given targetContainerPath, schemaName, and queryName. See theSaveRowsCommand
for more details.- Parameters:
targetContainerPath
- The targetContainerPathschemaName
- The schemaNamequeryName
- The queryName.- See Also:
-
-
Method Details
-
getJsonObject
public org.json.JSONObject getJsonObject()Description copied from class:SaveRowsCommand
Dynamically builds the JSON object to send based on the current schema name, query name and rows list.- Overrides:
getJsonObject
in classSaveRowsCommand
- Returns:
- The JSON object to send.
-