Package org.apache.wiki.plugin
Class PageViewPlugin.PageViewManager
java.lang.Object
org.apache.wiki.plugin.PageViewPlugin.PageViewManager
- All Implemented Interfaces:
EventListener
,WikiEventListener
- Enclosing class:
- PageViewPlugin
Page view manager, handling all storage.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
actionPerformed
(WikiEvent event) Inspect wiki events for shutdown.Count a page hit, present a pages' counter or output a list of page counts.void
initialize
(Engine engine) Initialize the page view manager.
-
Constructor Details
-
PageViewManager
public PageViewManager()
-
-
Method Details
-
initialize
Initialize the page view manager.- Parameters:
engine
- The wiki engine.
-
actionPerformed
Inspect wiki events for shutdown.- Specified by:
actionPerformed
in interfaceWikiEventListener
- Parameters:
event
- The wiki event to inspect.
-
execute
Count a page hit, present a pages' counter or output a list of page counts.- Parameters:
context
- the wiki contextparams
- the plugin parameters- Returns:
- String Wiki page snippet
- Throws:
PluginException
- Malformed pattern parameter.
-