Class UpdateUserGroupMembers
- java.lang.Object
-
- com.sodius.oslc.client.requests.AbstractResourceRequest<ResourceResponse<R>>
-
- com.sodius.oslc.client.requests.PutResource<jakarta.json.JsonArray,Void>
-
- com.sodius.oslc.app.jazz.lqe.requests.UpdateUserGroupMembers
-
- All Implemented Interfaces:
ResourceRequest<ResourceResponse<Void>>
,Callable<ResourceResponse<Void>>
public class UpdateUserGroupMembers extends PutResource<jakarta.json.JsonArray,Void>
Updates the members of a group in LQE.- Since:
- 1.11.0
-
-
Constructor Summary
Constructors Constructor Description UpdateUserGroupMembers(OslcClient client, URI uri, String eTag, Collection<User> users)
Creates a request to update the members of a LQE group.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ClientResponse
call(OslcResource resource)
Executes a PUT request on the resource.-
Methods inherited from class com.sodius.oslc.client.requests.PutResource
createResponse
-
Methods inherited from class com.sodius.oslc.client.requests.AbstractResourceRequest
call, createErrorResponse, createResourceResponse, getClient, getUri
-
-
-
-
Constructor Detail
-
UpdateUserGroupMembers
public UpdateUserGroupMembers(OslcClient client, URI uri, String eTag, Collection<User> users)
Creates a request to update the members of a LQE group.- Parameters:
client
- the OSLC client to connect to the application.uri
- the group URL, as defined byUserGroup.getMembers()
eTag
- the ETag header obtained in theGetUserGroups
responseusers
- the new list of members to assign to the group- See Also:
UserGroup.getMembers()
-
-
Method Detail
-
call
protected ClientResponse call(OslcResource resource)
Description copied from class:PutResource
Executes a PUT request on the resource.An
OSLC-Core-Version
header is set to2.0
, as the PUT is expected to execute on an OSLC resource. Clients should subclassAbstractResourceRequest
to execute a PUT on a non-OSLC resource.- Overrides:
call
in classPutResource<jakarta.json.JsonArray,Void>
- Parameters:
resource
- the resource on which to execute a request.- Returns:
- the response of the request execution.
-
-