Class MUCUser
java.lang.Object
org.jivesoftware.smackx.muc.packet.MUCUser
- All Implemented Interfaces:
 Element,ExtensionElement,NamedElement,XmlElement,XmlLangElement
Represents extended presence information about roles, affiliations, full JIDs,
 or status codes scoped by the 'http://jabber.org/protocol/muc#user' namespace.
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a rejection to an invitation from another user to a room.static classRepresents an invitation for another user to a room.static final classStatus code assists in presenting notification messages. - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddStatusCode(MUCUser.Status status) Add a status code which hold a code that assists in presenting notification messages.voidaddStatusCodes(Set<MUCUser.Status> statusCodes) Add the status codes which holds the codes that assists in presenting notification messages.static MUCUserRetrieve the MUCUser PacketExtension from packet, if any.Returns the rejection to an invitation from another user to a room.Returns the notification that the room has been destroyed.Returns the root element name.static MUCUserDeprecated.Returns the invitation for another user to a room.getItem()Returns the item child that holds information about roles, affiliation, jids and nicks.Returns the root element XML namespace.Returns the password to use to enter Password-Protected Room.Returns a set of status which holds the status code that assist in presenting notification messages.booleanReturns true if this MUCUser instance has alsoMUCUser.Statusinformation.voidsetDecline(MUCUser.Decline decline) Sets the rejection to an invitation from another user to a room.voidsetDestroy(Destroy destroy) Sets the notification that the room has been destroyed.voidsetInvite(MUCUser.Invite invite) Sets the invitation for another user to a room.voidSets the item child that holds information about roles, affiliation, jids and nicks.voidsetPassword(String string) Sets the password to use to enter Password-Protected Room.toXML(XmlEnvironment enclosingNamespace) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName 
- 
Field Details
- 
ELEMENT
- See Also:
 
 - 
NAMESPACE
- See Also:
 
 - 
QNAME
 
 - 
 - 
Constructor Details
- 
MUCUser
public MUCUser() 
 - 
 - 
Method Details
- 
getElementName
Description copied from interface:NamedElementReturns the root element name.- Specified by:
 getElementNamein interfaceNamedElement- Returns:
 - the element name.
 
 - 
getNamespace
Description copied from interface:XmlElementReturns the root element XML namespace.- Specified by:
 getNamespacein interfaceXmlElement- Returns:
 - the namespace.
 
 - 
toXML
 - 
getInvite
Returns the invitation for another user to a room. The sender of the invitation must be an occupant of the room. The invitation will be sent to the room which in turn will forward the invitation to the invitee.- Returns:
 - an invitation for another user to a room.
 
 - 
getDecline
Returns the rejection to an invitation from another user to a room. The rejection will be sent to the room which in turn will forward the refusal to the inviting user.- Returns:
 - a rejection to an invitation from another user to a room.
 
 - 
getItem
Returns the item child that holds information about roles, affiliation, jids and nicks.- Returns:
 - an item child that holds information about roles, affiliation, jids and nicks.
 
 - 
getPassword
Returns the password to use to enter Password-Protected Room. A Password-Protected Room is a room that a user cannot enter without first providing the correct password.- Returns:
 - the password to use to enter Password-Protected Room.
 
 - 
getStatus
Returns a set of status which holds the status code that assist in presenting notification messages.- Returns:
 - the set of status which holds the status code that assist in presenting notification messages.
 
 - 
hasStatus
Returns true if this MUCUser instance has alsoMUCUser.Statusinformation.If
trueis returned, thengetStatus()will return a non-empty set.- Returns:
 - true if this MUCUser has status information.
 - Since:
 - 4.1
 
 - 
getDestroy
Returns the notification that the room has been destroyed. After a room has been destroyed, the room occupants will receive a Presence stanza of type 'unavailable' with the reason for the room destruction if provided by the room owner.- Returns:
 - a notification that the room has been destroyed.
 
 - 
setInvite
Sets the invitation for another user to a room. The sender of the invitation must be an occupant of the room. The invitation will be sent to the room which in turn will forward the invitation to the invitee.- Parameters:
 invite- the invitation for another user to a room.
 - 
setDecline
Sets the rejection to an invitation from another user to a room. The rejection will be sent to the room which in turn will forward the refusal to the inviting user.- Parameters:
 decline- the rejection to an invitation from another user to a room.
 - 
setItem
Sets the 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.
 - 
setPassword
Sets the password to use to enter Password-Protected Room. A Password-Protected Room is a room that a user cannot enter without first providing the correct password.- Parameters:
 string- the password to use to enter Password-Protected Room.
 - 
addStatusCodes
Add the status codes which holds the codes that assists in presenting notification messages.- Parameters:
 statusCodes- the status codes which hold the codes that assists in presenting notification messages.
 - 
addStatusCode
Add a status code which hold a code that assists in presenting notification messages.- Parameters:
 status- the status code which olds a code that assists in presenting notification messages.
 - 
setDestroy
Sets the notification that the room has been destroyed. After a room has been destroyed, the room occupants will receive a Presence stanza of type 'unavailable' with the reason for the room destruction if provided by the room owner.- Parameters:
 destroy- the notification that the room has been destroyed.
 - 
getFrom
Deprecated.usefrom(Stanza)insteadRetrieve the MUCUser PacketExtension from packet, if any.- Parameters:
 packet- TODO javadoc me please- Returns:
 - the MUCUser PacketExtension or 
null 
 - 
from
Retrieve the MUCUser PacketExtension from packet, if any.- Parameters:
 packet- TODO javadoc me please- Returns:
 - the MUCUser PacketExtension or 
null 
 
 - 
 
from(Stanza)instead