Smack

org.jivesoftware.smackx.muc
Class Affiliate

java.lang.Object
  extended by org.jivesoftware.smackx.muc.Affiliate

public class Affiliate
extends java.lang.Object

Represents an affiliation of a user to a given room. The affiliate's information will always have the bare jid of the real user and its affiliation. If the affiliate is an occupant of the room then we will also have information about the role and nickname of the user in the room.

Author:
Gaston Dombiak

Method Summary
 java.lang.String getAffiliation()
          Returns the affiliation of the afffiliated user.
 java.lang.String getJid()
          Returns the bare JID of the affiliated user.
 java.lang.String getNick()
          Returns the current nickname of the affiliated user if the user is currently in the room.
 java.lang.String getRole()
          Returns the current role of the affiliated user if the user is currently in the room.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getJid

public java.lang.String getJid()
Returns the bare JID of the affiliated user. This information will always be available.

Returns:
the bare JID of the affiliated user.

getAffiliation

public java.lang.String getAffiliation()
Returns the affiliation of the afffiliated user. Possible affiliations are: "owner", "admin", "member", "outcast". This information will always be available.

Returns:
the affiliation of the afffiliated user.

getRole

public java.lang.String getRole()
Returns the current role of the affiliated user if the user is currently in the room. If the user is not present in the room then the answer will be null.

Returns:
the current role of the affiliated user in the room or null if the user is not in the room.

getNick

public java.lang.String getNick()
Returns the current nickname of the affiliated user if the user is currently in the room. If the user is not present in the room then the answer will be null.

Returns:
the current nickname of the affiliated user in the room or null if the user is not in the room.

Smack

Copyright © 2003-2007 Jive Software.