Package com.sodius.oslc.app.dng.requests
Class CreateCollection
- java.lang.Object
-
- com.sodius.oslc.client.requests.AbstractResourceRequest<ResourceResponse<R>>
-
- com.sodius.oslc.client.requests.PostResource<DngCollection,Void>
-
- com.sodius.oslc.app.dng.requests.CreateCollection
-
- All Implemented Interfaces:
ResourceRequest<ResourceResponse<Void>>
,Callable<ResourceResponse<Void>>
public class CreateCollection extends PostResource<DngCollection,Void>
A request to create a DOORS Next Collection.
-
-
Constructor Summary
Constructors Constructor Description CreateCollection(OslcClient client, URI creationFactory, DngCollection collection)
Creates a request to create a DOORS Next Collection.
-
Method Summary
-
Methods inherited from class com.sodius.oslc.client.requests.PostResource
call, createResponse
-
Methods inherited from class com.sodius.oslc.client.requests.AbstractResourceRequest
call, createErrorResponse, createResourceResponse, getClient, getUri
-
-
-
-
Constructor Detail
-
CreateCollection
public CreateCollection(OslcClient client, URI creationFactory, DngCollection collection)
Creates a request to create a DOORS Next Collection.Here is the required information in the specified collection:
- title: the collection title.
- parentFolder: the folder in which the collection is to create.
- instanceShape: the type of collection to create. This type is defined as a resource shape in the creation factory declared by the service provider.
The URI of the created collection 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, allowing the collection creation. A oslc_config.context parameter can be added to this URI for using a specific configuration.collection
- the collection content to assign to the created resource.
-
-