Interface OpenProjectSpaceResource


  • public interface OpenProjectSpaceResource
    Resource for handling the OpenProject integration spaces.
    Since:
    1.2.0-rc-1
    Version:
    $Id$
    • Method Detail

      • createSpace

        javax.ws.rs.core.Response createSpace​(String documentReference,
                                              Boolean withId)
                                       throws org.xwiki.rest.XWikiRestException
        Creates the OpenProject project template at the given document reference.
        Parameters:
        documentReference - the reference identifying where the template should be created.
        withId - if set to true, also creates and attaches to the created document unique identifiers. The returned documents will also contain the attached unique id.
        Returns:
        200 together with a list of Page, representing the created pages. 401 if the user does not have edit rights on the space. 403 if the page already exists. 406 if the requested wiki does not have the OpenProject integration UI installed.
        Throws:
        org.xwiki.rest.XWikiRestException - if any other problem occurs in the process of space creation.