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>>
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
ConstructorsConstructorDescriptionDeleteArtifact(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
Modifier and TypeMethodDescriptionprotected ClientResponsecall(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 Details
-
DeleteArtifact
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
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 Details
-
call
- Specified by:
callin classAbstractResourceRequest<ResourceResponse<Void>>
-
createResponse
- Specified by:
createResponsein classAbstractResourceRequest<ResourceResponse<Void>>
-