Package com.sodius.oslc.app.dng.requests
Class DeleteArtifact
- java.lang.Object
-
- com.sodius.oslc.client.requests.AbstractResourceRequest<ResourceResponse<Void>>
-
- com.sodius.oslc.app.dng.requests.DeleteArtifact
-
- All Implemented Interfaces:
ResourceRequest<ResourceResponse<Void>>
,Callable<ResourceResponse<Void>>
public class DeleteArtifact extends AbstractResourceRequest<ResourceResponse<Void>>
A request to delete a DOORS Next artifact: module, collection, requirement or folder.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 Summary
Constructors Constructor 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.
-
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
-
DeleteArtifact
public DeleteArtifact(OslcClient client, URI uri)
Creates a request to delete an artifact.- Parameters:
client
- the OSLC client to connect to the application.uri
- the URI of the DOORS Next artifact. A oslc_config.context parameter can be added to this URI for using a specific configuration.
-
DeleteArtifact
public DeleteArtifact(OslcClient client, URI uri, boolean deleteUnboundArtifact)
Creates a request to delete an artifact and optionally its associated base artifact.- Parameters:
client
- the OSLC client to connect to the application.uri
- the URI of the DOORS Next 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.
-
-
Method Detail
-
call
protected ClientResponse call(OslcResource resource)
- Specified by:
call
in classAbstractResourceRequest<ResourceResponse<Void>>
-
createResponse
protected ResourceResponse<Void> createResponse(OslcResource resource, ClientResponse response)
- Specified by:
createResponse
in classAbstractResourceRequest<ResourceResponse<Void>>
-
-