Class WikiManager


  • public class WikiManager
    extends java.lang.Object
    Works with Wiki entries (read-only at this moment).

    Obtain it via RedmineManager:

     RedmineManager redmineManager = RedmineManagerFactory.createWithUserAuth(redmineURI, login, password);
     WikiManager wikiManager = redmineManager.getWikiManager();
     

    Sample usage:

     String projectKey = "projkey1410979585758";
     wikiPages = manager.getWikiPagesByProject(projectKey);
     
    See Also:
    RedmineManager
    • Method Detail

      • getWikiPagesByProject

        public java.util.List<WikiPage> getWikiPagesByProject​(java.lang.String projectKey)
                                                       throws RedmineException
        Parameters:
        projectKey - the key of the project (like "TEST-12") we want the wiki pages from
        Returns:
        a list of all wiki pages for the project.
        Throws:
        RedmineException
        Since:
        Redmine 2.2
      • getWikiPageDetailByProjectAndTitle

        public WikiPageDetail getWikiPageDetailByProjectAndTitle​(java.lang.String projectKey,
                                                                 java.lang.String pageTitle)
                                                          throws RedmineException
        Parameters:
        projectKey - the key of the project (like "TEST-12") we want the wiki page from
        pageTitle - The name of the page
        Returns:
        the wiki page titled with the name passed as parameter
        Throws:
        RedmineException
        Since:
        Redmine 2.2