Class CreateUserGroup
- java.lang.Object
-
- com.sodius.oslc.client.requests.AbstractResourceRequest<ResourceResponse<R>>
-
- com.sodius.oslc.client.requests.PostResource<jakarta.json.JsonObject,Void>
-
- com.sodius.oslc.app.jazz.lqe.requests.CreateUserGroup
-
- All Implemented Interfaces:
ResourceRequest<ResourceResponse<Void>>
,Callable<ResourceResponse<Void>>
public class CreateUserGroup extends PostResource<jakarta.json.JsonObject,Void>
Creates a new user group in LQE.- Since:
- 1.11.0
-
-
Constructor Summary
Constructors Constructor Description CreateUserGroup(OslcClient client, URI uri, UserGroup group)
Creates a new request instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ClientResponse
call(OslcResource resource)
Executes a POST request on the resource.-
Methods inherited from class com.sodius.oslc.client.requests.PostResource
createResponse
-
Methods inherited from class com.sodius.oslc.client.requests.AbstractResourceRequest
call, createErrorResponse, createResourceResponse, getClient, getUri
-
-
-
-
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"
- description: the group description
- Parameters:
client
- the OSLC client to connect to the application.uri
- the URL for group management, as defined byLqeRootServices.getUserGroups()
group
- the group to create- See Also:
LqeRootServices.getUserGroups()
-
-
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 to2.0
, as the POST is expected to execute on an OSLC resource. Clients should subclassAbstractResourceRequest
to execute a POST on a non-OSLC resource.- Overrides:
call
in classPostResource<jakarta.json.JsonObject,Void>
- Parameters:
resource
- the resource on which to execute a request.- Returns:
- the response of the request execution.
-
-