org.androidpn.server.xmpp.presence
Class PresenceManager

java.lang.Object
  extended by org.androidpn.server.xmpp.presence.PresenceManager

public class PresenceManager
extends java.lang.Object

This class is to manage the presences of users.

Author:
Sehwan Noh (devnoh@gmail.com)

Constructor Summary
PresenceManager()
          Constructor.
 
Method Summary
 org.xmpp.packet.Presence getPresence(User user)
          Returns the current presence of the user.
 boolean isAvailable(User user)
          Returns the availability of the user.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PresenceManager

public PresenceManager()
Constructor.

Method Detail

isAvailable

public boolean isAvailable(User user)
Returns the availability of the user.

Parameters:
user - the user
Returns:
true if the user is available

getPresence

public org.xmpp.packet.Presence getPresence(User user)
Returns the current presence of the user.

Parameters:
user - the user
Returns:
the current presence of the user.