Smack

org.jivesoftware.smackx.packet
Class MUCAdmin

java.lang.Object
  extended by org.jivesoftware.smack.packet.Packet
      extended by org.jivesoftware.smack.packet.IQ
          extended by 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
 
Field Summary
 
Fields inherited from class org.jivesoftware.smack.packet.Packet
DEFAULT_LANGUAGE, ID_NOT_AVAILABLE
 
Constructor Summary
MUCAdmin()
           
 
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.IQ
createErrorResponse, createResultIQ, getType, setType, toXML
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MUCAdmin

public MUCAdmin()
Method Detail

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.

Smack

Copyright © 2003-2007 Jive Software.