Package com.xwiki.task.rest
Interface TaskResource
-
@Unstable public interface TaskResourceProvides operations on task pages.- Since:
- 3.0
- Version:
- $Id$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.ws.rs.core.ResponsechangeTaskStatus(String wikiName, String spaces, String pageName, String status)Modify the status of a Task macro.
-
-
-
Method Detail
-
changeTaskStatus
javax.ws.rs.core.Response changeTaskStatus(String wikiName, @Encoded String spaces, String pageName, String status) throws org.xwiki.rest.XWikiRestException
Modify the status of a Task macro.- Parameters:
wikiName- the name of the wiki in which the page residesspaces- the spaces of the pagepageName- the name of the pagestatus- whether the task has been completed or not- Returns:
- 200 is the status has been changed successfully of 404 if the task was not found
- Throws:
org.xwiki.rest.XWikiRestException- when failing in retrieving the document or saving it
-
-