public class PageRenamer extends Object
Constructor and Description |
---|
PageRenamer() |
Modifier and Type | Method and Description |
---|---|
String |
renamePage(WikiContext context,
String renameFrom,
String renameTo,
boolean changeReferrers)
Renames a page.
|
public PageRenamer()
public String renamePage(WikiContext context, String renameFrom, String renameTo, boolean changeReferrers) throws WikiException
context
- The current context.renameFrom
- The name from which to rename.renameTo
- The new name.changeReferrers
- If true, also changes all the referrers.WikiException
- If the page cannot be renamed.Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.