Class CreateUserGroup

    • Constructor Detail

      • 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.
        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 Detail

      • 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.

        call in class PostResource<jakarta.json.JsonObject,​Void>
        resource - the resource on which to execute a request.
        the response of the request execution.