| java.lang.Object com.ecyrd.jspwiki.PageRenamer
PageRenamer | public class PageRenamer (Code) | | Do all the nitty-gritty work of renaming pages.
since: 2.4 |
PageRenamer | public PageRenamer(WikiEngine engine, Properties props)(Code) | | Constructor, ties this renamer instance to a WikiEngine.
Parameters: engine - the wiki engine Parameters: props - the properties used to initialize the wiki engine |
checkPluralPageName | public String checkPluralPageName(String pageName)(Code) | | Checks if a name is plural, and if so, checks if the page with plural
exists, otherwise it returns the singular version of the name.
Parameters: pageName - the name of the page the corrected page name |
renamePage | public String renamePage(WikiContext context, String oldName, String newName, boolean changeReferrers) throws WikiException(Code) | | Renames, or moves, a wiki page. Can also alter referring wiki
links to point to the renamed page.
Parameters: context - TODO Parameters: oldName - Name of the source page. Parameters: newName - Name of the destination page. Parameters: changeReferrers - If true, then changes any referring linksto point to the renamed page. The name of the page that the source was renamed to. throws: WikiException - In the case of an error, such as the destinationpage already existing. |
|
|