Interface OpenProjectLinkSearchResource
-
public interface OpenProjectLinkSearchResourceResource for retrieving pages containingProjectManagementRelationto an Open Project entity.- Since:
- 1.2.0-rc-1
- Version:
- $Id$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.xwiki.rest.model.jaxb.SearchResultsgetProjects(String projectId, String forInstance, Integer number, Integer start, String orderField, String order, Boolean withPrettyNames)org.xwiki.rest.model.jaxb.SearchResultsgetWorkPackages(String workPackageId, String filterInstance, Integer number, Integer start, String orderField, String order, Boolean withPrettyNames)
-
-
-
Method Detail
-
getProjects
org.xwiki.rest.model.jaxb.SearchResults getProjects(String projectId, String forInstance, Integer number, Integer start, String orderField, String order, Boolean withPrettyNames) throws org.xwiki.rest.XWikiRestException
- Parameters:
projectId- the OpenProject project id that should match the xwiki pages.forInstance- the id of the OpenProject instance that should be taken into consideration when returning links.number- the maximum number of elements that should be returned.start- the offset of the results.orderField- the field on which the results should be ordered on.order- how the results should be ordered. asc or desc.withPrettyNames- denotes whether the results should contain the pretty names of the documents or not.- Returns:
- a list of xwiki pages that have a
ProjectManagementRelationto an OpenProject entity and that the current user has view rights on. - Throws:
org.xwiki.rest.XWikiRestException- if there was any issue retrieving the xwiki pages.
-
getWorkPackages
org.xwiki.rest.model.jaxb.SearchResults getWorkPackages(String workPackageId, String filterInstance, Integer number, Integer start, String orderField, String order, Boolean withPrettyNames) throws org.xwiki.rest.XWikiRestException
- Parameters:
workPackageId- the OpenProject work package id that should match the xwiki pages.filterInstance- the id of the OpenProject instance that should be taken into consideration when returning links.number- the maximum number of elements that should be returned.start- the offset of the results.orderField- the field on which the results should be ordered on.order- how the results should be ordered. asc or desc.withPrettyNames- denotes whether the results should contain the pretty names of the documents or not.- Returns:
- a list of xwiki pages that have a
ProjectManagementRelationto an OpenProject entity and that the current user has view rights on. - Throws:
org.xwiki.rest.XWikiRestException- if there was any issue retrieving the xwiki pages.
-
-