Interface OpenProjectLinkObjectsResource
public interface OpenProjectLinkObjectsResource
Resource for creating the link to an Open Project entity.
- Since:
- 1.2.0-rc-1
- Version:
- $Id$
-
Method Summary
-
Method Details
-
link
javax.ws.rs.core.Response link(String wikiName, String id, String instanceId, Boolean minorRevision, WorkPackageLink link) throws org.xwiki.rest.XWikiRestException Creates the link between an xwiki page and an OpenProject entity. Once created, these links can be accessed through theOpenProjectLinkSearchResource.- Parameters:
wikiName- the wiki where the xwiki page resides.id- the unique identifier, created throughOpenProjectDocumentResource, that uniquely identifies an xwiki page on the instance.instanceId- the id of the OpenProject instance that should be taken into consideration when creating links.minorRevision- if set to true, the new page version will be a minor one.link- theWorkPackageLinkmodel that will be used to create a link.- Returns:
- 201: If the object was created (The Location header will contain the URI associated to the newly created object). 401: If the user is not authorized.
- Throws:
org.xwiki.rest.XWikiRestException- if any exception was thrown when the object was created.
-