Package com.sodius.oslc.app.dng.requests
Class CreateModule
java.lang.Object
com.sodius.oslc.client.requests.AbstractResourceRequest<ResourceResponse<Void>>
com.sodius.oslc.app.dng.requests.CreateModule
- All Implemented Interfaces:
ResourceRequest<ResourceResponse<Void>>,Callable<ResourceResponse<Void>>
A request to create a DOORS Next Module.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreateModule(OslcClient client, URI creationFactory, Module module) Creates a request to create a DOORS Next Module. -
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
-
CreateModule
Creates a request to create a DOORS Next Module.Here is the required information in the specified module:
- title: the module title.
- parentFolder: the folder in which the module is to create.
- instanceShape: the type of module to create. This type can be discovered using GetModuleService, which returns a creation factory per module type.
Here is the optional information the module may provide:
- description: the description to assign to the created module.
The URI of the created module can then be obtained through the "Location" header provided in the request response.
- Parameters:
client- the OSLC client to connect to the application.creationFactory- the URI of the creation factory, as provided by the service in GetModuleService. A oslc_config.context parameter can be added to this URI for using a specific configuration.module- the module to create.- See Also:
-
-
Method Details
-
call
- Specified by:
callin classAbstractResourceRequest<ResourceResponse<Void>>
-
createResponse
- Specified by:
createResponsein classAbstractResourceRequest<ResourceResponse<Void>>
-