public class WikiManager
extends java.lang.Object
Obtain it via RedmineManager:
RedmineManager redmineManager = RedmineManagerFactory.createWithUserAuth(redmineURI, login, password); WikiManager wikiManager = redmineManager.getWikiManager();
Sample usage:
String projectKey = "projkey1410979585758"; wikiPages = manager.getWikiPagesByProject(projectKey);
RedmineManager| Modifier and Type | Method and Description |
|---|---|
void |
create(java.lang.String projectKey,
WikiPageDetail detail)
At this moment create() simply calls update().
|
WikiPageDetail |
getWikiPageDetailByProjectAndTitle(java.lang.String projectKey,
java.lang.String pageTitle) |
java.util.List<WikiPage> |
getWikiPagesByProject(java.lang.String projectKey) |
void |
update(java.lang.String projectKey,
WikiPageDetail detail) |
public java.util.List<WikiPage> getWikiPagesByProject(java.lang.String projectKey) throws RedmineException
projectKey - the key of the project (like "TEST-12") we want the wiki pages fromRedmineExceptionpublic WikiPageDetail getWikiPageDetailByProjectAndTitle(java.lang.String projectKey, java.lang.String pageTitle) throws RedmineException
projectKey - the key of the project (like "TEST-12") we want the wiki page frompageTitle - The name of the pageRedmineExceptionpublic void create(java.lang.String projectKey,
WikiPageDetail detail)
throws RedmineException
RedmineExceptionpublic void update(java.lang.String projectKey,
WikiPageDetail detail)
throws RedmineException
projectKey - the key of the project (like "TEST-12") we want the wiki page fromdetail - the WikiPageDetail with its text and comment updated.
Version must be set to the latest version of the document.RedmineException