public class GetUsersCommand extends Command<GetUsersResponse>
Command.CommonParameters, Command.Response
CONTENT_TYPE_JSON
Constructor and Description |
---|
GetUsersCommand() |
GetUsersCommand(Command source,
java.lang.String group,
int groupId,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
Command |
copy()
Returns a copy of this object.
|
protected GetUsersResponse |
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.
|
java.lang.String |
getGroup() |
int |
getGroupId() |
java.lang.String |
getName() |
java.util.Map<java.lang.String,java.lang.Object> |
getParameters()
Returns the current parameter map, or null if a map has not yet been set.
|
java.lang.Boolean |
includeDeactivated() |
void |
setGroup(java.lang.String group) |
void |
setGroupId(int groupId) |
void |
setIncludeDeactivated(java.lang.Boolean active) |
void |
setName(java.lang.String name) |
_execute, checkThrowError, createRequest, execute, getActionName, getActionUrl, getControllerName, getHttpRequest, getParamValueAsString, getQueryString, getRequiredVersion, getTimeout, setParameters, setRequiredVersion, setTimeout
public GetUsersCommand()
public GetUsersCommand(Command source, java.lang.String group, int groupId, java.lang.String name)
public int getGroupId()
public void setGroupId(int groupId)
groupId
- the id of a project group for which you want the members (specify groupId or group, not both).public java.lang.String getGroup()
public void setGroup(java.lang.String group)
group
- the name of a project group for which you want the members (specify groupId or group, not both).public java.lang.String getName()
public void setName(java.lang.String name)
name
- The first part of the user name, useful for user name completion. If specified, only users whose
email address or display name starts with the value supplied will be returned.public java.lang.Boolean includeDeactivated()
public void setIncludeDeactivated(java.lang.Boolean active)
public Command copy()
Command
copy
in class Command<GetUsersResponse>
public java.util.Map<java.lang.String,java.lang.Object> getParameters()
Command
getParameters
in class Command<GetUsersResponse>
protected GetUsersResponse 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<GetUsersResponse>
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).