org.jivesoftware.smackx.packet
Class MUCAdmin
java.lang.Object
org.jivesoftware.smack.packet.Packet
org.jivesoftware.smack.packet.IQ
org.jivesoftware.smackx.packet.MUCAdmin
public class MUCAdmin
- extends IQ
IQ packet that serves for kicking users, granting and revoking voice, banning users,
modifying the ban list, granting and revoking membership and granting and revoking
moderator privileges. All these operations are scoped by the
'http://jabber.org/protocol/muc#admin' namespace.
- Author:
- Gaston Dombiak
Nested Class Summary |
static class |
MUCAdmin.Item
Item child that holds information about roles, affiliation, jids and nicks. |
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ |
IQ.Type |
Method Summary |
void |
addItem(MUCAdmin.Item item)
Adds an item child that holds information about roles, affiliation, jids and nicks. |
String |
getChildElementXML()
Returns the sub-element XML section of the IQ packet, or null if there
isn't one. |
Iterator<MUCAdmin.Item> |
getItems()
Returns an Iterator for item childs that holds information about roles, affiliation,
jids and nicks. |
Methods inherited from class org.jivesoftware.smack.packet.Packet |
addExtension, addExtensions, deleteProperty, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, getXmlns, hashCode, nextID, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setProperty, setTo |
MUCAdmin
public MUCAdmin()
getItems
public Iterator<MUCAdmin.Item> getItems()
- Returns an Iterator for item childs that holds information about roles, affiliation,
jids and nicks.
- Returns:
- an Iterator for item childs that holds information about roles, affiliation,
jids and nicks.
addItem
public void addItem(MUCAdmin.Item item)
- Adds an item child that holds information about roles, affiliation, jids and nicks.
- Parameters:
item
- the item child that holds information about roles, affiliation, jids and nicks.
getChildElementXML
public String getChildElementXML()
- Description copied from class:
IQ
- Returns the sub-element XML section of the IQ packet, or null if there
isn't one. Packet extensions must be included, if any are defined.
Extensions of this class must override this method.
- Specified by:
getChildElementXML
in class IQ
- Returns:
- the child element section of the IQ XML.
Copyright © 2003-2007 Jive Software.