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.
|
java.lang.String |
getOwnerJID()
Returns the full JID of the owner of this command.
|
java.lang.String |
getSessionID()
Returns the session ID of this execution.
|
abstract boolean |
hasPermission(java.lang.String 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(java.lang.String ownerJID)
Sets the JID of the command host.
|
void |
setSessionID(java.lang.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, isValidAction, next, prev, setExecuteAction, setForm, setName, setNode
public void setSessionID(java.lang.String sessionID)
sessionID
- the unique session id of this executionpublic java.lang.String getSessionID()
public void setOwnerJID(java.lang.String ownerJID)
ownerJID
- the JID of the owner.public java.lang.String getOwnerJID()
AdHocCommand
getOwnerJID
in class AdHocCommand
public long getCreationDate()
public abstract boolean isLastStage()
public abstract boolean hasPermission(java.lang.String jid)
jid
- the JID to check permissions on.public int getCurrentStage()