A filter (an extension to org.apache.wiki.api.filters.BasicPageFilter) that fires WikiPageEvents for page events. Use of this class will cause pre- and post-translate, pre- and post-save WikiPageEvents to be fired.
Adding a PageEventFilter to the FilterManager will automatically attach an event delegate with the WikiEventManager to provide for firing and listener management. All that remains is then adding your WikiEventListener to the filter via the WikiEventManager. This sounds complicated but is quite simple in practice:
PageEventFilter filter = new PageEventFilter(); engine.getFilterManager().addPageFilter(filter,5000); // attach listener to filter WikiEventManager.addWikiEventListener(filter,listener);
This class also provides convenience methods for adding and removing WikiEventListeners.