public class UpdateDataGroupPermissions extends PutResource<jakarta.json.JsonObject,Void>
Constructor and Description |
---|
UpdateDataGroupPermissions(OslcClient client,
URI uri,
String eTag,
DataGroupPermissions permissions)
Creates a request to update the permissions of a LQE data group.
|
Modifier and Type | Method and Description |
---|---|
protected ClientResponse |
call(OslcResource resource)
Executes a PUT request on the resource.
|
createResponse
call, createErrorResponse, createResourceResponse, getClient, getUri
public UpdateDataGroupPermissions(OslcClient client, URI uri, String eTag, DataGroupPermissions permissions)
client
- the OSLC client to connect to the application.uri
- the data group URL, as defined by AbstractResource.getAbout()
eTag
- the ETag header obtained in the GetDataGroupPermissions
responsepermissions
- the new permissions to assign to the data groupGetDataGroupPermissions
protected ClientResponse call(OslcResource resource)
PutResource
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.
call
in class PutResource<jakarta.json.JsonObject,Void>
resource
- the resource on which to execute a request.