Class CreateUserGroup

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

public class CreateUserGroup extends PostResource<JsonObject,Void>
Creates a new user group in LQE.
Since:
1.11.0
  • Constructor Details

    • CreateUserGroup

      public CreateUserGroup(OslcClient client, URI uri, UserGroup group)
      Creates a new request instance.

      Here is the required information in the specified group:

      • name: the group name
      • type: the group type, e.g. "LOCAL_GROUP"
      Here is the optional information the group may provide:
      • description: the group description
      The URI of the created group can then be obtained through the "Location" header provided in the request response.
      Parameters:
      client - the OSLC client to connect to the application.
      uri - the URL for group management, as defined by LqeRootServices.getUserGroups()
      group - the group to create
      See Also:
  • Method Details

    • call

      protected ClientResponse call(OslcResource resource)
      Description copied from class: PostResource
      Executes a POST request on the resource.

      An OSLC-Core-Version header is set to 2.0, as the POST is expected to execute on an OSLC resource. Clients should subclass AbstractResourceRequest to execute a POST on a non-OSLC resource.

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