Class CreateCollection

    • 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.