|
Openfire 3.6.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.commands.AdHocCommand org.jivesoftware.openfire.commands.event.GroupAdminAdded
public class GroupAdminAdded
Notifies the that a admin was added to the group. It can be used by user providers to notify Openfire of the aditon of a admin to a group.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jivesoftware.openfire.commands.AdHocCommand |
---|
AdHocCommand.Action, AdHocCommand.Status |
Constructor Summary | |
---|---|
GroupAdminAdded()
|
Method Summary | |
---|---|
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 sessionData,
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. |
boolean |
hasPermission(JID requester)
Returns true if the requester is allowed to execute this command. |
Methods inherited from class org.jivesoftware.openfire.commands.AdHocCommand |
---|
addNextStageInformation, addPreviousStageInformation, addStageActions, get, getLabel, setLabel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GroupAdminAdded()
Method Detail |
---|
public String getCode()
AdHocCommand
getCode
in class AdHocCommand
public String getDefaultLabel()
AdHocCommand
AdHocCommand.setLabel(String)
to set a new label and reset to the default value at any time.
getDefaultLabel
in class AdHocCommand
public int getMaxStages(SessionData data)
AdHocCommand
getMaxStages
in class AdHocCommand
data
- 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 void execute(SessionData sessionData, org.dom4j.Element command)
AdHocCommand
execute
in class AdHocCommand
sessionData
- 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 void addStageInformation(SessionData data, org.dom4j.Element command)
AdHocCommand
addStageInformation
in class AdHocCommand
data
- 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.protected List<AdHocCommand.Action> getActions(SessionData data)
AdHocCommand
getActions
in class AdHocCommand
data
- 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.
protected AdHocCommand.Action getExecuteAction(SessionData data)
AdHocCommand
getExecuteAction
in class AdHocCommand
data
- 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 boolean hasPermission(JID requester)
AdHocCommand
Note: The bare JID of the requester will be compared with the bare JID of the admins.
hasPermission
in class AdHocCommand
requester
- the JID of the user requesting to execute this command.
|
Openfire 3.6.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |