Skip to content

Commit e3238b1

Browse files
committed
Tidy up response parameters
1 parent 5620c89 commit e3238b1

38 files changed

+51
-38
lines changed

labkey-client-api/src/org/labkey/remoteapi/assay/AssayListResponse.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
package org.labkey.remoteapi.assay;
1717

1818
import org.json.JSONObject;
19+
import org.labkey.remoteapi.Command;
1920
import org.labkey.remoteapi.CommandResponse;
2021

2122
import java.util.List;
@@ -36,7 +37,7 @@ public class AssayListResponse extends CommandResponse
3637
* @param json The parsed JSONObject (or null if JSON was not returned)
3738
* @param sourceCommand A copy of the command that created this response
3839
*/
39-
public AssayListResponse(String text, int statusCode, String contentType, JSONObject json, AssayListCommand sourceCommand)
40+
public AssayListResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends AssayListResponse> sourceCommand)
4041
{
4142
super(text, statusCode, contentType, json, sourceCommand);
4243
}

labkey-client-api/src/org/labkey/remoteapi/assay/GetAssayRunCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ public JSONObject getJsonObject()
5151
@Override
5252
protected GetAssayRunResponse createResponse(String text, int status, String contentType, JSONObject json)
5353
{
54-
return new GetAssayRunResponse(text, status, contentType, json, this);
54+
return new GetAssayRunResponse(text, status, contentType, json, this.copy());
5555
}
5656
}

labkey-client-api/src/org/labkey/remoteapi/assay/GetAssayRunResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public void setRun(Run run)
2828
* @param json The parsed JSONObject (or null if JSON was not returned).
2929
* @param sourceCommand A copy of the command that created this response
3030
*/
31-
public GetAssayRunResponse(String text, int statusCode, String contentType, JSONObject json, Command<?> sourceCommand)
31+
public GetAssayRunResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends GetAssayRunResponse> sourceCommand)
3232
{
3333
super(text, statusCode, contentType, json, sourceCommand);
3434
JSONObject runJson = (JSONObject) json.get("run");

labkey-client-api/src/org/labkey/remoteapi/assay/ImportRunCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public ImportRunCommand copy()
135135
@Override
136136
protected ImportRunResponse createResponse(String text, int status, String contentType, JSONObject json)
137137
{
138-
return new ImportRunResponse(text, status, contentType, json, this);
138+
return new ImportRunResponse(text, status, contentType, json, this.copy());
139139
}
140140

141141
@Override

labkey-client-api/src/org/labkey/remoteapi/assay/ImportRunResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class ImportRunResponse extends CommandResponse
2626
private final int _batchId;
2727
private final int _runId;
2828

29-
public ImportRunResponse(String text, int statusCode, String contentType, JSONObject json, Command<?> sourceCommand)
29+
public ImportRunResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends ImportRunResponse> sourceCommand)
3030
{
3131
super(text, statusCode, contentType, json, sourceCommand);
3232
_successURL = (String)json.get("successurl");

labkey-client-api/src/org/labkey/remoteapi/assay/LoadAssayBatchCommand.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public LoadAssayBatchCommand(LoadAssayBatchCommand source)
3535
super(source);
3636
_protocolName = source.getProtocolName();
3737
_batchId = source.getBatchId();
38+
_batch = new Batch(source._batch.toJSONObject());
3839
}
3940

4041
public String getProtocolName()
@@ -76,6 +77,6 @@ public LoadAssayBatchCommand copy()
7677
@Override
7778
protected LoadAssayBatchResponse createResponse(String text, int status, String contentType, JSONObject json)
7879
{
79-
return new LoadAssayBatchResponse(text, status, contentType, json, this);
80+
return new LoadAssayBatchResponse(text, status, contentType, json, this.copy());
8081
}
8182
}

labkey-client-api/src/org/labkey/remoteapi/assay/LoadAssayBatchResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class LoadAssayBatchResponse extends CommandResponse
1818
* @param json The parsed JSONObject (or null if JSON was not returned).
1919
* @param sourceCommand A copy of the command that created this response
2020
*/
21-
public LoadAssayBatchResponse(String text, int statusCode, String contentType, JSONObject json, Command<?> sourceCommand)
21+
public LoadAssayBatchResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends LoadAssayBatchResponse> sourceCommand)
2222
{
2323
super(text, statusCode, contentType, json, sourceCommand);
2424
_batch = new Batch((JSONObject) json.get("batch"));

labkey-client-api/src/org/labkey/remoteapi/assay/ProtocolResponse.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
package org.labkey.remoteapi.assay;
22

33
import org.json.JSONObject;
4+
import org.labkey.remoteapi.Command;
45
import org.labkey.remoteapi.CommandResponse;
56

67
public class ProtocolResponse extends CommandResponse
78
{
89
private final Protocol _protocol;
910

10-
public ProtocolResponse(String text, int statusCode, String contentType, JSONObject json, GetProtocolCommand sourceCommand)
11+
public ProtocolResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends ProtocolResponse> sourceCommand)
1112
{
1213
super(text, statusCode, contentType, json, sourceCommand);
1314
_protocol = new Protocol((JSONObject) json.get("data"));

labkey-client-api/src/org/labkey/remoteapi/assay/SaveAssayBatchResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class SaveAssayBatchResponse extends CommandResponse
2424
private final Batch _batch;
2525
private final int _assayId;
2626

27-
public SaveAssayBatchResponse(String text, int statusCode, String contentType, JSONObject json, Command<?> sourceCommand)
27+
public SaveAssayBatchResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends SaveAssayBatchResponse> sourceCommand)
2828
{
2929
super(text, statusCode, contentType, json, sourceCommand);
3030
_batch = new Batch((JSONObject)json.get("batch"));

labkey-client-api/src/org/labkey/remoteapi/assay/SaveAssayRunsResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class SaveAssayRunsResponse extends CommandResponse
2222
* @param json The parsed JSONObject (or null if JSON was not returned).
2323
* @param sourceCommand A copy of the command that created this response
2424
*/
25-
public SaveAssayRunsResponse(String text, int statusCode, String contentType, JSONObject json, Command<?> sourceCommand)
25+
public SaveAssayRunsResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends SaveAssayRunsResponse> sourceCommand)
2626
{
2727
super(text, statusCode, contentType, json, sourceCommand);
2828
JSONArray array = json.getJSONArray("runs");

labkey-client-api/src/org/labkey/remoteapi/assay/nab/NAbRunsResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public class NAbRunsResponse extends CommandResponse
8282
* @param json The parsed JSONObject (or null if JSON was not returned).
8383
* @param sourceCommand A copy of the command that created this response
8484
*/
85-
public NAbRunsResponse(String text, int statusCode, String contentType, JSONObject json, Command<NAbRunsResponse> sourceCommand)
85+
public NAbRunsResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends NAbRunsResponse> sourceCommand)
8686
{
8787
super(text, statusCode, contentType, json, sourceCommand);
8888
}

labkey-client-api/src/org/labkey/remoteapi/di/BaseTransformResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class BaseTransformResponse extends CommandResponse
3131
* @param json The parsed JSONObject (or null if JSON was not returned).
3232
* @param sourceCommand A copy of the command that created this response
3333
*/
34-
public BaseTransformResponse(String text, int statusCode, String contentType, JSONObject json, Command<?> sourceCommand)
34+
public BaseTransformResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends BaseTransformResponse> sourceCommand)
3535
{
3636
super(text, statusCode, contentType, json, sourceCommand);
3737
}

labkey-client-api/src/org/labkey/remoteapi/di/ResetTransformStateResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class ResetTransformStateResponse extends BaseTransformResponse
3030
* @param json The parsed JSONObject (or null if JSON was not returned).
3131
* @param sourceCommand A copy of the command that created this response
3232
*/
33-
public ResetTransformStateResponse(String text, int statusCode, String contentType, JSONObject json, Command<?> sourceCommand)
33+
public ResetTransformStateResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends ResetTransformStateResponse> sourceCommand)
3434
{
3535
super(text, statusCode, contentType, json, sourceCommand);
3636
}

labkey-client-api/src/org/labkey/remoteapi/di/RunTransformResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class RunTransformResponse extends BaseTransformResponse
3030
* @param json The parsed JSONObject (or null if JSON was not returned).
3131
* @param sourceCommand A copy of the command that created this response
3232
*/
33-
public RunTransformResponse(String text, int statusCode, String contentType, JSONObject json, Command<?> sourceCommand)
33+
public RunTransformResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends RunTransformResponse> sourceCommand)
3434
{
3535
super(text, statusCode, contentType, json, sourceCommand);
3636
}

labkey-client-api/src/org/labkey/remoteapi/di/UpdateTransformConfigurationResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class UpdateTransformConfigurationResponse extends BaseTransformResponse
3333
* @param json The parsed JSONObject (or null if JSON was not returned).
3434
* @param sourceCommand A copy of the command that created this response
3535
*/
36-
public UpdateTransformConfigurationResponse(String text, int statusCode, String contentType, JSONObject json, Command<?> sourceCommand)
36+
public UpdateTransformConfigurationResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends UpdateTransformConfigurationResponse> sourceCommand)
3737
{
3838
super(text, statusCode, contentType, json, sourceCommand);
3939
}

labkey-client-api/src/org/labkey/remoteapi/domain/DomainResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class DomainResponse extends CommandResponse
88
{
99
private final Domain _domain;
1010

11-
public DomainResponse(String text, int statusCode, String contentType, JSONObject json, Command<DomainResponse> sourceCommand)
11+
public DomainResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends DomainResponse> sourceCommand)
1212
{
1313
super(text, statusCode, contentType, json, sourceCommand);
1414
_domain = new Domain(json);

labkey-client-api/src/org/labkey/remoteapi/domain/ListDomainsResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class ListDomainsResponse extends CommandResponse
2121
* @param json The parsed JSONObject (or null if JSON was not returned).
2222
* @param sourceCommand A copy of the command that created this response
2323
*/
24-
public ListDomainsResponse(String text, int statusCode, String contentType, JSONObject json, Command<?> sourceCommand)
24+
public ListDomainsResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends ListDomainsResponse> sourceCommand)
2525
{
2626
super(text, statusCode, contentType, json, sourceCommand);
2727
JSONArray domains = json.getJSONArray("data");

labkey-client-api/src/org/labkey/remoteapi/experiment/LineageResponse.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
package org.labkey.remoteapi.experiment;
1717

1818
import org.json.JSONObject;
19+
import org.labkey.remoteapi.Command;
1920
import org.labkey.remoteapi.CommandResponse;
2021

2122
import java.util.ArrayList;
@@ -31,7 +32,7 @@ public class LineageResponse extends CommandResponse
3132
List<LineageNode> _seeds;
3233
Map<String, LineageNode> _nodes;
3334

34-
public LineageResponse(String text, int statusCode, String contentType, JSONObject json, LineageCommand sourceCommand)
35+
public LineageResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends LineageResponse> sourceCommand)
3536
{
3637
super(text, statusCode, contentType, json, sourceCommand);
3738

labkey-client-api/src/org/labkey/remoteapi/ms2/StartSearchResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
public class StartSearchResponse extends CommandResponse
2323
{
24-
public StartSearchResponse(String text, int statusCode, String contentType, JSONObject json, Command<?> sourceCommand)
24+
public StartSearchResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends StartSearchResponse> sourceCommand)
2525
{
2626
super(text, statusCode, contentType, json, sourceCommand);
2727
}

labkey-client-api/src/org/labkey/remoteapi/pipeline/FileNotificationResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525
public class FileNotificationResponse extends CommandResponse
2626
{
27-
public FileNotificationResponse(String text, int statusCode, String contentType, JSONObject json, Command<?> sourceCommand)
27+
public FileNotificationResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends FileNotificationResponse> sourceCommand)
2828
{
2929
super(text, statusCode, contentType, json, sourceCommand);
3030
}

labkey-client-api/src/org/labkey/remoteapi/query/GetQueriesResponse.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
package org.labkey.remoteapi.query;
1717

1818
import org.json.JSONObject;
19+
import org.labkey.remoteapi.Command;
1920
import org.labkey.remoteapi.CommandResponse;
2021

2122
import java.util.ArrayList;
@@ -28,7 +29,7 @@
2829
*/
2930
public class GetQueriesResponse extends CommandResponse
3031
{
31-
public GetQueriesResponse(String text, int statusCode, String contentType, JSONObject json, GetQueriesCommand sourceCommand)
32+
public GetQueriesResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends GetQueriesResponse> sourceCommand)
3233
{
3334
super(text, statusCode, contentType, json, sourceCommand);
3435
}

labkey-client-api/src/org/labkey/remoteapi/query/GetQueryDetailsResponse.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
package org.labkey.remoteapi.query;
1717

1818
import org.json.JSONObject;
19+
import org.labkey.remoteapi.Command;
1920
import org.labkey.remoteapi.CommandResponse;
2021
import org.labkey.remoteapi.ResponseObject;
2122

@@ -28,7 +29,7 @@
2829
*/
2930
public class GetQueryDetailsResponse extends CommandResponse
3031
{
31-
public GetQueryDetailsResponse(String text, int statusCode, String contentType, JSONObject json, GetQueryDetailsCommand sourceCommand)
32+
public GetQueryDetailsResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends GetQueryDetailsResponse> sourceCommand)
3233
{
3334
super(text, statusCode, contentType, json, sourceCommand);
3435
}

labkey-client-api/src/org/labkey/remoteapi/query/GetSchemasResponse.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
package org.labkey.remoteapi.query;
1717

1818
import org.json.JSONObject;
19+
import org.labkey.remoteapi.Command;
1920
import org.labkey.remoteapi.CommandResponse;
2021

2122
import java.util.List;
@@ -25,7 +26,7 @@
2526
*/
2627
public class GetSchemasResponse extends CommandResponse
2728
{
28-
public GetSchemasResponse(String text, int statusCode, String contentType, JSONObject json, GetSchemasCommand sourceCommand)
29+
public GetSchemasResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends GetSchemasResponse> sourceCommand)
2930
{
3031
super(text, statusCode, contentType, json, sourceCommand);
3132
}

labkey-client-api/src/org/labkey/remoteapi/query/ImportDataResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class ImportDataResponse extends CommandResponse
2525
private final int _rowCount;
2626
private final String _jobId;
2727

28-
public ImportDataResponse(String text, int statusCode, String contentType, JSONObject json, Command<?> sourceCommand)
28+
public ImportDataResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends ImportDataResponse> sourceCommand)
2929
{
3030
super(text, statusCode, contentType, json, sourceCommand);
3131
_success = json.optBoolean("success");

labkey-client-api/src/org/labkey/remoteapi/query/SaveRowsResponse.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
package org.labkey.remoteapi.query;
1717

1818
import org.json.JSONObject;
19+
import org.labkey.remoteapi.Command;
1920

2021
/**
2122
* Response object used for commands that derive from SaveRowsCommand.
@@ -32,7 +33,7 @@ public class SaveRowsResponse extends RowsResponse
3233
* @param json The parsed JSONObject (or null if JSON was not returned).
3334
* @param sourceCommand A copy of the command that created this response
3435
*/
35-
public SaveRowsResponse(String text, int statusCode, String contentType, JSONObject json, SaveRowsCommand sourceCommand)
36+
public SaveRowsResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends SaveRowsResponse> sourceCommand)
3637
{
3738
super(text, statusCode, contentType, json, sourceCommand);
3839
}

labkey-client-api/src/org/labkey/remoteapi/query/SelectRowsResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ else if("date".equalsIgnoreCase(type))
6666
* @param json The parsed JSONObject (or null if no JSON was returned
6767
* @param sourceCommand A copy of the command that created this response
6868
*/
69-
public SelectRowsResponse(String text, int statusCode, String contentType, JSONObject json, Command<SelectRowsResponse> sourceCommand)
69+
public SelectRowsResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends SelectRowsResponse> sourceCommand)
7070
{
7171
super(text, statusCode, contentType, json, sourceCommand);
7272
}

labkey-client-api/src/org/labkey/remoteapi/query/TruncateTableResponse.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
package org.labkey.remoteapi.query;
1717

1818
import org.json.JSONObject;
19+
import org.labkey.remoteapi.Command;
1920
import org.labkey.remoteapi.CommandResponse;
2021

2122
/**
@@ -33,7 +34,7 @@ public class TruncateTableResponse extends CommandResponse
3334
* @param json The parsed JSONObject (or null if JSON was not returned).
3435
* @param sourceCommand A copy of the command that created this response
3536
*/
36-
public TruncateTableResponse(String text, int statusCode, String contentType, JSONObject json, TruncateTableCommand sourceCommand)
37+
public TruncateTableResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends TruncateTableResponse> sourceCommand)
3738
{
3839
super(text, statusCode, contentType, json, sourceCommand);
3940
}

labkey-client-api/src/org/labkey/remoteapi/security/CreateContainerResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
public class CreateContainerResponse extends CommandResponse
2323
{
24-
public CreateContainerResponse(String text, int statusCode, String contentType, JSONObject json, Command<?> sourceCommand)
24+
public CreateContainerResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends CreateContainerResponse> sourceCommand)
2525
{
2626
super(text, statusCode, contentType, json, sourceCommand);
2727
}

labkey-client-api/src/org/labkey/remoteapi/security/CreateGroupResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
public class CreateGroupResponse extends CommandResponse
2323
{
24-
public CreateGroupResponse(String text, int statusCode, String contentType, JSONObject json, Command<?> sourceCommand)
24+
public CreateGroupResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends CreateGroupResponse> sourceCommand)
2525
{
2626
super(text, statusCode, contentType, json, sourceCommand);
2727
}

labkey-client-api/src/org/labkey/remoteapi/security/CreateUserResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
public class CreateUserResponse extends CommandResponse
2323
{
24-
public CreateUserResponse(String text, int statusCode, String contentType, JSONObject json, Command<?> sourceCommand)
24+
public CreateUserResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends CreateUserResponse> sourceCommand)
2525
{
2626
super(text, statusCode, contentType, json, sourceCommand);
2727
}

labkey-client-api/src/org/labkey/remoteapi/security/DeleteContainerResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525
public class DeleteContainerResponse extends CommandResponse
2626
{
27-
public DeleteContainerResponse(String text, int statusCode, String contentType, JSONObject json, Command<?> sourceCommand)
27+
public DeleteContainerResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends DeleteContainerResponse> sourceCommand)
2828
{
2929
super(text, statusCode, contentType, json, sourceCommand);
3030
}

labkey-client-api/src/org/labkey/remoteapi/security/GetContainersResponse.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@
1616
package org.labkey.remoteapi.security;
1717

1818
import org.json.JSONObject;
19+
import org.labkey.remoteapi.Command;
1920
import org.labkey.remoteapi.CommandResponse;
2021

2122
import java.util.List;
2223
import java.util.Map;
2324

2425
public class GetContainersResponse extends CommandResponse
2526
{
26-
public GetContainersResponse(String text, int statusCode, String contentType, JSONObject json, GetContainersCommand sourceCommand)
27+
public GetContainersResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends GetContainersResponse> sourceCommand)
2728
{
2829
super(text, statusCode, contentType, json, sourceCommand);
2930
}

labkey-client-api/src/org/labkey/remoteapi/security/GetGroupPermsResponse.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@
1616
package org.labkey.remoteapi.security;
1717

1818
import org.json.JSONObject;
19+
import org.labkey.remoteapi.Command;
1920
import org.labkey.remoteapi.CommandResponse;
2021

2122
public class GetGroupPermsResponse extends CommandResponse
2223
{
23-
public GetGroupPermsResponse(String text, int statusCode, String contentType, JSONObject json, GetGroupPermsCommand sourceCommand)
24+
public GetGroupPermsResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends GetGroupPermsResponse> sourceCommand)
2425
{
2526
super(text, statusCode, contentType, json, sourceCommand);
2627
}

labkey-client-api/src/org/labkey/remoteapi/security/GetUsersResponse.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
package org.labkey.remoteapi.security;
1717

1818
import org.json.JSONObject;
19+
import org.labkey.remoteapi.Command;
1920
import org.labkey.remoteapi.CommandResponse;
2021
import org.labkey.remoteapi.ResponseObject;
2122

@@ -28,7 +29,7 @@
2829
*/
2930
public class GetUsersResponse extends CommandResponse
3031
{
31-
public GetUsersResponse(String text, int statusCode, String contentType, JSONObject json, GetUsersCommand sourceCommand)
32+
public GetUsersResponse(String text, int statusCode, String contentType, JSONObject json, Command<? extends GetUsersResponse> sourceCommand)
3233
{
3334
super(text, statusCode, contentType, json, sourceCommand);
3435
}

0 commit comments

Comments
 (0)