|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.wiki.plugin.mostpopular.MostPopularListener
public class MostPopularListener
Implements WikiEventListener to listen for page hit events for
the MostPopularPlugin.
Since only one of these instances is meant to exist for each
WikiEngine, this is also where the hit count for each page is
stored and processed, i.e., the guts of the plugin. Serialization
and deserialization of the page cache between sessions is also
handled here.
| Constructor Summary | |
|---|---|
MostPopularListener(WikiEngine engine)
Constructor with the WikiEngine this listener is meant to service. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(WikiEvent event)
|
protected String |
getCreated(int style)
Returns the timestamp of the creation time of the cache, as a String. |
String[] |
getPageList(Collection exclusions)
Return the current "hit report" as an array of String objects, each a link to a wiki page. |
int |
hitsForPage(String pagename)
Return the hit count for the provided page. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MostPopularListener(WikiEngine engine)
| Method Detail |
|---|
public int hitsForPage(String pagename)
public String[] getPageList(Collection exclusions)
public void actionPerformed(WikiEvent event)
actionPerformed in interface WikiEventListenerprotected String getCreated(int style)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||