public abstract class LocalCommand extends AdHocCommand
AdHocCommand.Action, AdHocCommand.SpecificErrorCondition, AdHocCommand.Status
Constructor and Description |
---|
LocalCommand() |
Modifier and Type | Method and Description |
---|---|
long |
getCreationDate()
Returns the date the command was created.
|
int |
getCurrentStage()
Returns the currently executing stage number.
|
org.jxmpp.jid.Jid |
getOwnerJID()
Returns the full JID of the owner of this command.
|
String |
getSessionID()
Returns the session ID of this execution.
|
abstract boolean |
hasPermission(org.jxmpp.jid.Jid jid)
Returns true if the specified requester has permission to execute all the
stages of this action.
|
abstract boolean |
isLastStage()
Returns true if the current stage is the last one.
|
void |
setOwnerJID(org.jxmpp.jid.Jid ownerJID)
Sets the JID of the command host.
|
void |
setSessionID(String sessionID)
The sessionID is an unique identifier of an execution request.
|
addActionAvailable, addNote, cancel, complete, execute, getActions, getExecuteAction, getForm, getName, getNode, getNotes, getRaw, getSpecificErrorCondition, getStatus, isCompleted, isValidAction, next, prev, setExecuteAction, setForm, setName, setNode
public LocalCommand()
public void setSessionID(String sessionID)
sessionID
- the unique session id of this executionpublic String getSessionID()
public void setOwnerJID(org.jxmpp.jid.Jid ownerJID)
ownerJID
- the JID of the owner.public org.jxmpp.jid.Jid getOwnerJID()
AdHocCommand
getOwnerJID
in class AdHocCommand
public long getCreationDate()
public abstract boolean isLastStage()
public abstract boolean hasPermission(org.jxmpp.jid.Jid jid)
jid
- the JID to check permissions on.public int getCurrentStage()