public class GetNumberOnlineUsers extends AdHocCommand
AdHocCommand.Action, AdHocCommand.Status| Constructor and Description |
|---|
GetNumberOnlineUsers() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addStageInformation(SessionData data,
org.dom4j.Element command)
Adds to the command element the data form or notes required by the current stage.
|
void |
execute(SessionData data,
org.dom4j.Element command)
Executes the command with the specified session data.
|
protected List<AdHocCommand.Action> |
getActions(SessionData data)
Returns a collection with the allowed actions based on the current stage as defined
in the SessionData.
|
String |
getCode()
Returns the unique identifier for this command for the containing JID.
|
String |
getDefaultLabel()
Returns the default label used for describing this commmand.
|
protected AdHocCommand.Action |
getExecuteAction(SessionData data)
Returns which of the actions available for the current stage is considered the equivalent
to "execute".
|
int |
getMaxStages(SessionData data)
Returns the max number of stages for this command.
|
addNextStageInformation, addPreviousStageInformation, addStageActions, get, getLabel, hasPermission, setLabelprotected void addStageInformation(SessionData data, org.dom4j.Element command)
AdHocCommandaddStageInformation in class AdHocCommanddata - the gathered data through the command stages or null if the
command does not have stages or the requester is requesting the execution for the
first time.command - the command element to be sent to the command requester.public void execute(SessionData data, org.dom4j.Element command)
AdHocCommandexecute in class AdHocCommanddata - the gathered data through the command stages or null if the
command does not have stages.command - the command element to be sent to the command requester with a reported
data result or note element with the answer of the execution.protected List<AdHocCommand.Action> getActions(SessionData data)
AdHocCommandgetActions in class AdHocCommanddata - the gathered data through the command stages or null if the
command does not have stages or the requester is requesting the execution for the
first time.public String getCode()
AdHocCommandgetCode in class AdHocCommandpublic String getDefaultLabel()
AdHocCommandAdHocCommand.setLabel(String)
to set a new label and reset to the default value at any time.getDefaultLabel in class AdHocCommandprotected AdHocCommand.Action getExecuteAction(SessionData data)
AdHocCommandgetExecuteAction in class AdHocCommanddata - the gathered data through the command stages or null if the
command does not have stages or the requester is requesting the execution for the
first time.public int getMaxStages(SessionData data)
AdHocCommandgetMaxStages in class AdHocCommanddata - the gathered data through the command stages or null if the
command does not have stages or the requester is requesting the execution for the
first time.Copyright © 2003-2008 Jive Software.