Class CreateUserGroup
java.lang.Object
com.sodius.oslc.client.requests.AbstractResourceRequest<ResourceResponse<R>>
com.sodius.oslc.client.requests.PostResource<JsonObject,Void>
com.sodius.oslc.app.jazz.lqe.requests.CreateUserGroup
- All Implemented Interfaces:
ResourceRequest<ResourceResponse<Void>>,Callable<ResourceResponse<Void>>
Creates a new user group in LQE.
- Since:
- 1.11.0
-
Constructor Summary
ConstructorsConstructorDescriptionCreateUserGroup(OslcClient client, URI uri, UserGroup group) Creates a new request instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected ClientResponsecall(OslcResource resource) Executes a POST request on the resource.Methods inherited from class com.sodius.oslc.client.requests.PostResource
createResponseMethods inherited from class com.sodius.oslc.client.requests.AbstractResourceRequest
call, createErrorResponse, createResourceResponse, getClient, getUri
-
Constructor Details
-
CreateUserGroup
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:
-
-
Method Details
-
call
Description copied from class:PostResourceExecutes a POST request on the resource.An
OSLC-Core-Versionheader is set to2.0, as the POST is expected to execute on an OSLC resource. Clients should subclassAbstractResourceRequestto execute a POST on a non-OSLC resource.- Overrides:
callin classPostResource<JsonObject,Void> - Parameters:
resource- the resource on which to execute a request.- Returns:
- the response of the request execution.
-