public class UpdateParticipantGroupCommand extends PostCommand<UpdateParticipantGroupResponse>
Modifier and Type | Class and Description |
---|---|
static class |
UpdateParticipantGroupCommand.UpdatedParticipantGroup
Special subclass that allows specifying just participants that should be added
or removed, without needing to specify the full set of participants.
|
Command.CommonParameters, Command.Response
CONTENT_TYPE_JSON
Constructor and Description |
---|
UpdateParticipantGroupCommand(ParticipantGroup group) |
Modifier and Type | Method and Description |
---|---|
protected UpdateParticipantGroupResponse |
createResponse(java.lang.String text,
int status,
java.lang.String contentType,
org.json.simple.JSONObject json)
Creates an instance of the response class, initialized with
the response text, the HTTP status code, and parsed JSONObject.
|
org.json.simple.JSONObject |
getJsonObject()
Returns the JSON object to post, or null if the JSON object
has not yet been set.
|
copy, createRequest, setJsonObject
_execute, checkThrowError, execute, getActionName, getActionUrl, getControllerName, getHttpRequest, getParameters, getParamValueAsString, getQueryString, getRequiredVersion, getTimeout, setParameters, setRequiredVersion, setTimeout
public UpdateParticipantGroupCommand(ParticipantGroup group)
group
- the group, including its requested updates.
If fields are not set, they will not be changed from their existing values in the current saved group.public org.json.simple.JSONObject getJsonObject()
PostCommand
getJsonObject
in class PostCommand<UpdateParticipantGroupResponse>
protected UpdateParticipantGroupResponse createResponse(java.lang.String text, int status, java.lang.String contentType, org.json.simple.JSONObject json)
Command
Override this method to create an instance of a different class that extends CommandResponse
createResponse
in class Command<UpdateParticipantGroupResponse>
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).