Class GetUsersCommand
- All Implemented Interfaces:
HasRequiredVersion
Returns a list of users given selection criteria. This may be called by any logged-in user.
-
Nested Class Summary
Nested classes/interfaces inherited from class Command
Command.CommonParameters, Command.Response -
Field Summary
Fields inherited from class Command
CONTENT_TYPE_JSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a new, mutable parameter map.protected GetUsersResponsecreateResponse(String text, int status, String contentType, org.json.JSONObject json) Creates an instance of the response class, initialized with the response text, the HTTP status code, and parsed JSONObject.getGroup()intbooleangetName()voidvoidsetGroupId(int groupId) voidsetIncludeInactive(boolean includeInactive) voidMethods inherited from class GetCommand
createRequestMethods inherited from class Command
_execute, execute, getActionName, getControllerName, getHttpRequest, getParameters, getParamValueAsString, getRequiredVersion, getTimeout, setRequiredVersion, setTimeout
-
Constructor Details
-
GetUsersCommand
public GetUsersCommand()
-
-
Method Details
-
getGroupId
public int getGroupId()- Returns:
- the id of a project group for which you want the members
-
setGroupId
public void setGroupId(int groupId) - Parameters:
groupId- the id of a project group for which you want the members (specify groupId or group, not both).
-
getGroup
- Returns:
- the name of a project group for which you want the members
-
setGroup
- Parameters:
group- the name of a project group for which you want the members (specify groupId or group, not both).
-
getName
- Returns:
- the first part of the username, useful for username completion
-
setName
- Parameters:
name- The first part of the username, useful for username completion. If specified, only users whose email address or display name starts with the value supplied will be returned.
-
getIncludeInactive
public boolean getIncludeInactive()- Returns:
- Flag to request inactive users as well
-
setIncludeInactive
public void setIncludeInactive(boolean includeInactive) -
createParameterMap
Description copied from class:CommandReturns a new, mutable parameter map. Derived classes will typically override this method to put values passed to specialized setter methods into the map.- Overrides:
createParameterMapin classCommand<GetUsersResponse>- Returns:
- The parameter map to use when building the URL.
-
createResponse
protected GetUsersResponse createResponse(String text, int status, String contentType, org.json.JSONObject json) Description copied from class:CommandCreates 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:
createResponsein classCommand<GetUsersResponse>- 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.
-