Package org.apache.wiki.plugin
Class PageViewPlugin.PageViewManager
- java.lang.Object
-
- org.apache.wiki.plugin.PageViewPlugin.PageViewManager
-
- All Implemented Interfaces:
java.util.EventListener,WikiEventListener
- Enclosing class:
- PageViewPlugin
public final class PageViewPlugin.PageViewManager extends java.lang.Object implements WikiEventListener
Page view manager, handling all storage.
-
-
Constructor Summary
Constructors Constructor Description PageViewManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(WikiEvent event)Inspect wiki events for shutdown.java.lang.Stringexecute(Context context, java.util.Map<java.lang.String,java.lang.String> params)Count a page hit, present a pages' counter or output a list of page counts.voidinitialize(Engine engine)Initialize the page view manager.
-
-
-
Constructor Detail
-
PageViewManager
public PageViewManager()
-
-
Method Detail
-
initialize
public void initialize(Engine engine)
Initialize the page view manager.- Parameters:
engine- The wiki engine.
-
actionPerformed
public void actionPerformed(WikiEvent event)
Inspect wiki events for shutdown.- Specified by:
actionPerformedin interfaceWikiEventListener- Parameters:
event- The wiki event to inspect.
-
execute
public java.lang.String execute(Context context, java.util.Map<java.lang.String,java.lang.String> params) throws PluginException
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.
-
-