public final class PageViewPlugin.PageViewManager extends Object implements WikiEventListener
| Constructor and Description |
|---|
PageViewManager() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public PageViewManager()
public void initialize(WikiEngine engine)
engine - The wiki engine.public void actionPerformed(WikiEvent event)
actionPerformed in interface WikiEventListenerevent - The wiki event to inspect.public String execute(WikiContext context, Map<String,String> params) throws PluginException
context - the wiki contextparams - the plugin parametersPluginException - Malformed pattern parameter.protected int getCount(Object key)
key - the key for the Counterprotected void storeCounters()
Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.