public class SessionData extends Object
Constructor and Description |
---|
SessionData(String sessionid,
org.xmpp.packet.JID owner) |
Modifier and Type | Method and Description |
---|---|
protected void |
addStageForm(Map<String,List<String>> data) |
long |
getCreationStamp() |
Map<String,List<String>> |
getData()
Returns a Map with all the variables and values obtained during all the command stages.
|
protected AdHocCommand.Action |
getExecuteAction() |
String |
getId() |
org.xmpp.packet.JID |
getOwner()
Returns the JID of the entity that is executing the command.
|
int |
getStage()
Returns the current stage where the requester is located.
|
protected boolean |
isValidAction(String actionName)
Returns true if the specified action is valid in the current stage.
|
protected void |
setAllowedActions(List<AdHocCommand.Action> allowedActions)
Sets the valid actions that the user can follow from the current stage.
|
protected void |
setExecuteAction(AdHocCommand.Action executeAction) |
protected void |
setStage(int stage)
Sets the current stage where the requester is located.
|
public SessionData(String sessionid, org.xmpp.packet.JID owner)
public String getId()
public org.xmpp.packet.JID getOwner()
public long getCreationStamp()
protected AdHocCommand.Action getExecuteAction()
protected void setExecuteAction(AdHocCommand.Action executeAction)
protected void setAllowedActions(List<AdHocCommand.Action> allowedActions)
allowedActions
- list of valid actions.protected boolean isValidAction(String actionName)
actionName
- the name of the action to validate.public Map<String,List<String>> getData()
public int getStage()
protected void setStage(int stage)
stage
- the current stage where the requester is located.Copyright © 2003-2008 Jive Software.