|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.wiki.plugin.ListUsers
public class ListUsers
The ListUsers plugin is a CeryleWikiPlugin that lists the users currently online. It has a bit simpler syntax than the existing SessionsPlugin, and provides the output using wiki links (though not when they are identified as an IP address). The default output is a list, but just as any of the CeryleWikiPlugins that use an output parameter, you can have the output formatted as you like.
The output is wrapped in a
If compiled with CHECK_AUTHENTICATION true, returns an empty
string if the user viewing the page is not authenticated. This could
be modified to permit only admins.
This uses the same parameter syntax and output formats as the QueryPlugin.
| Field Summary | |
|---|---|
protected static boolean |
CHECK_AUTHENTICATION
If true, check to see that user is authenticated. |
static String |
CLASS_LISTUSERS
The CSS class attribute value used for the output <div> element. |
static String |
NOBODY
The string returned when there are no users. |
static String |
ONE_SESSION
The (singular) string provided as the output of 'sessions' when there is only one user. |
static String |
ONE_USER
The (singular) string provided as the output of 'users' when there is only one user. |
static String |
PARAM_OUTPUT
|
static String |
SESSIONS
The (plural) string appended to the output of 'sessions'. |
static String |
USERS
The (plural) string appended to the output of 'users'. |
| Fields inherited from interface com.ecyrd.jspwiki.plugin.WikiPlugin |
|---|
CORE_PLUGINS_RESOURCEBUNDLE |
| Constructor Summary | |
|---|---|
ListUsers()
|
|
| Method Summary | |
|---|---|
String |
execute(WikiContext context,
Map params)
|
String |
lookupIP(String address)
Attempts a lookup of the IP address (as a String), returning a name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String NOBODY
public static String ONE_USER
public static String USERS
public static String ONE_SESSION
public static String SESSIONS
public static final String CLASS_LISTUSERS
public static final String PARAM_OUTPUT
protected static final boolean CHECK_AUTHENTICATION
| Constructor Detail |
|---|
public ListUsers()
| Method Detail |
|---|
public String execute(WikiContext context, Map params) throws PluginException
execute in interface WikiPluginPluginExceptionpublic String lookupIP(String address)
[This feature is currently unimplemented.]
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||