Class GetUserGroupMembers
- java.lang.Object
-
- com.sodius.oslc.client.requests.AbstractResourceRequest<ResourceResponse<Collection<User>>>
-
- com.sodius.oslc.app.jazz.lqe.requests.GetUserGroupMembers
-
- All Implemented Interfaces:
ResourceRequest<ResourceResponse<Collection<User>>>
,Callable<ResourceResponse<Collection<User>>>
public class GetUserGroupMembers extends AbstractResourceRequest<ResourceResponse<Collection<User>>>
Gets the members of a user group.- Since:
- 1.11.0
-
-
Constructor Summary
Constructors Constructor Description GetUserGroupMembers(OslcClient client, URI uri)
Creates a request to get the members of a LQE user group.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ClientResponse
call(OslcResource resource)
Executes the request on the specified resource.protected ResourceResponse<Collection<User>>
createResponse(OslcResource resource, ClientResponse response)
Processes the response obtained when executing a request on the specified resource.-
Methods inherited from class com.sodius.oslc.client.requests.AbstractResourceRequest
call, createErrorResponse, createResourceResponse, getClient, getUri
-
-
-
-
Constructor Detail
-
GetUserGroupMembers
public GetUserGroupMembers(OslcClient client, URI uri)
Creates a request to get the members of a LQE user group.- Parameters:
client
- the OSLC client to connect to the application.uri
- the user group URL, as defined byUserGroup.getMembers()
- See Also:
UserGroup.getMembers()
-
-
Method Detail
-
call
protected ClientResponse call(OslcResource resource)
Description copied from class:AbstractResourceRequest
Executes the request on the specified resource. Subclasses may add extra information (such as headers) on the resource before executing the request.- Specified by:
call
in classAbstractResourceRequest<ResourceResponse<Collection<User>>>
- Parameters:
resource
- the resource on which to execute a request.- Returns:
- the response of the request execution.
-
createResponse
protected ResourceResponse<Collection<User>> createResponse(OslcResource resource, ClientResponse response)
Description copied from class:AbstractResourceRequest
Processes the response obtained when executing a request on the specified resource. Due to the contract of theResourceRequest
interface, this method is called only when the HTTP response status is20x
.- Specified by:
createResponse
in classAbstractResourceRequest<ResourceResponse<Collection<User>>>
- Parameters:
resource
- the resource on which a request is executed.response
- the response obtained.- Returns:
- the extraction of the response content into the expected format.
-
-