|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wiki.plugin.PageViewPlugin.PageViewManager
public final class PageViewPlugin.PageViewManager
Page view manager, handling all storage.
Constructor Summary | |
---|---|
PageViewPlugin.PageViewManager()
|
Method Summary | |
---|---|
void |
actionPerformed(WikiEvent event)
Inspect wiki events for shutdown. |
String |
execute(WikiContext context,
Map<String,String> params)
Count a page hit, present a pages' counter or output a list of page counts. |
protected int |
getCount(Object key)
Retrieve a page count. |
void |
initialize(WikiEngine engine)
Initialize the page view manager. |
protected void |
storeCounters()
Save the page view counters to file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PageViewPlugin.PageViewManager()
Method Detail |
---|
public void initialize(WikiEngine engine)
engine
- The wiki engine.public void actionPerformed(WikiEvent event)
actionPerformed
in interface WikiEventListener
event
- The wiki event to inspect.public String execute(WikiContext context, Map<String,String> params) throws PluginException
context
- the wiki contextparams
- the plugin parameters
PluginException
- Malformed pattern parameter.protected int getCount(Object key)
key
- the key for the Counter
protected void storeCounters()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |