|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
org.apache.wiki.event.WikiEvent
org.apache.wiki.event.WikiPageEvent
org.apache.wiki.event.WikiPageRenameEvent
public class WikiPageRenameEvent

WikiPageRenameEvent extends WikiPageEvent to indicate a change in the name of a WikiPage.
This reuses WikiPageEvent.getPageName() to return the new name of the
page, with getOldPageName() returning the old name.
WikiPageEvent,
Serialized Form| Field Summary | |
|---|---|
static int |
PAGE_RENAMED
Indicates a page rename event. |
| Fields inherited from class org.apache.wiki.event.WikiPageEvent |
|---|
PAGE_DELETE_REQUEST, PAGE_DELETED, PAGE_DELIVERED, PAGE_LOCK, PAGE_REQUESTED, PAGE_UNLOCK, POST_SAVE, POST_SAVE_BEGIN, POST_SAVE_END, POST_TRANSLATE, POST_TRANSLATE_BEGIN, POST_TRANSLATE_END, PRE_SAVE, PRE_SAVE_BEGIN, PRE_SAVE_END, PRE_TRANSLATE, PRE_TRANSLATE_BEGIN, PRE_TRANSLATE_END |
| Fields inherited from class org.apache.wiki.event.WikiEvent |
|---|
ERROR, UNDEFINED |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
WikiPageRenameEvent(Object src,
String oldname,
String newname)
Constructs an instance of this event. |
|
| Method Summary | |
|---|---|
String |
eventName()
Returns a textual representation of the event type. |
String |
getNewPageName()
Returns the new Wiki page name associated with this event. |
String |
getOldPageName()
Returns the old Wiki page name associated with this event. |
String |
getTypeDescription()
Returns a human-readable description of the event type. |
static boolean |
isValidType(int type)
Returns true if the int value is a WikiPageRenameEvent type. |
| Methods inherited from class org.apache.wiki.event.WikiPageEvent |
|---|
getPageName |
| Methods inherited from class org.apache.wiki.event.WikiEvent |
|---|
getSrc, getType, getWhen, setType, toString |
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int PAGE_RENAMED
PageRenamer.
| Constructor Detail |
|---|
public WikiPageRenameEvent(Object src,
String oldname,
String newname)
src - the Object that is the source of the event.oldname - the old name of the WikiPage being acted upon.newname - the new name of the WikiPage being acted upon.| Method Detail |
|---|
public String getOldPageName()
public String getNewPageName()
WikiPageEvent.getPageName().
This may be null if unavailable.
public static boolean isValidType(int type)
public String eventName()
eventName in class WikiPageEventpublic String getTypeDescription()
getTypeDescription in class WikiPageEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||