Class UpdateUserGroupMembers

All Implemented Interfaces:
ResourceRequest<ResourceResponse<Void>>, Callable<ResourceResponse<Void>>

public class UpdateUserGroupMembers extends PutResource<JsonArray,Void>
Updates the members of a group in LQE.
Since:
1.11.0
  • Constructor Details

    • 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 by UserGroup.getMembers()
      eTag - the ETag header obtained in the GetUserGroups response
      users - the new list of members to assign to the group
      See Also:
  • Method Details

    • 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 to 2.0, as the PUT is expected to execute on an OSLC resource. Clients should subclass AbstractResourceRequest to execute a PUT on a non-OSLC resource.

      Overrides:
      call in class PutResource<JsonArray,Void>
      Parameters:
      resource - the resource on which to execute a request.
      Returns:
      the response of the request execution.