Package com.sodius.oslc.app.dng.requests
Class UpdateModuleStructure
- java.lang.Object
-
- com.sodius.oslc.client.requests.AbstractResourceRequest<ResourceResponse<R>>
-
- com.sodius.oslc.client.requests.PutResource<ModuleContextBinding,Void>
-
- com.sodius.oslc.app.dng.requests.UpdateModuleStructure
-
- All Implemented Interfaces:
ResourceRequest<ResourceResponse<Void>>
,Callable<ResourceResponse<Void>>
public class UpdateModuleStructure extends PutResource<ModuleContextBinding,Void>
A request to update the content of a DOORS Next Module: insert, move or remove requirements in a single request- Since:
- 2.2.0
-
-
Constructor Summary
Constructors Constructor Description UpdateModuleStructure(OslcClient client, URI uri, String eTag, ModuleContextBinding moduleBinding)
Creates a request to update the moduleBinding of a DOORS Next Module.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ClientResponse
call(OslcResource resource)
protected ResourceResponse<Void>
createResponse(OslcResource resource, ClientResponse response)
-
Methods inherited from class com.sodius.oslc.client.requests.AbstractResourceRequest
call, createErrorResponse, createResourceResponse, getClient, getUri
-
-
-
-
Constructor Detail
-
UpdateModuleStructure
public UpdateModuleStructure(OslcClient client, URI uri, String eTag, ModuleContextBinding moduleBinding)
Creates a request to update the moduleBinding of a DOORS Next Module.- Parameters:
client
- the OSLC client to connect to the application.uri
- the URI of a DOORS Next module. A oslc_config.context parameter can be added to this URI for using a specific configuration.eTag
- the ETag header of the existing requirement, as provided in the response of the requirement reading.moduleBinding
- the moduleBinding to insert in the existing module.- See Also:
ResourceResponse.getETag()
-
-
Method Detail
-
call
protected ClientResponse call(OslcResource resource)
- Overrides:
call
in classPutResource<ModuleContextBinding,Void>
-
createResponse
protected ResourceResponse<Void> createResponse(OslcResource resource, ClientResponse response)
- Overrides:
createResponse
in classPutResource<ModuleContextBinding,Void>
-
-