public class DeleteArtifact extends AbstractResourceRequest<ResourceResponse<Void>>
In the case of a requirement used in a module, this class allows requesting the deletion of the associated base artifact, provided it is not used in any other module.
Constructor and Description |
---|
DeleteArtifact(OslcClient client,
URI uri)
Creates a request to delete an artifact.
|
DeleteArtifact(OslcClient client,
URI uri,
boolean deleteUnboundArtifact)
Creates a request to delete an artifact and optionally its associated base artifact.
|
Modifier and Type | Method and Description |
---|---|
protected ClientResponse |
call(OslcResource resource) |
protected ResourceResponse<Void> |
createResponse(OslcResource resource,
ClientResponse response) |
call, createResourceResponse, getClient, getUri
public DeleteArtifact(OslcClient client, URI uri)
client
- the OSLC client to connect to the application.uri
- the URI of the DOORS Next Generation artifact. A oslc_config.context parameter can be added to
this URI for using a specific configuration.public DeleteArtifact(OslcClient client, URI uri, boolean deleteUnboundArtifact)
client
- the OSLC client to connect to the application.uri
- the URI of the DOORS Next Generation artifact. A oslc_config.context parameter can be added to
this URI for using a specific configuration.deleteUnboundArtifact
- determines whether deleting a module artifact should also automatically delete the corresponding base artifact, provided the
base artifact is not used in any other module.protected ClientResponse call(OslcResource resource)
call
in class AbstractResourceRequest<ResourceResponse<Void>>
protected ResourceResponse<Void> createResponse(OslcResource resource, ClientResponse response)
createResponse
in class AbstractResourceRequest<ResourceResponse<Void>>