|
|||||||||
Home >> All >> edu >> ou >> kmi >> buddyspace >> [ core overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
edu.ou.kmi.buddyspace.core
Class BSPresencesOfJID

java.lang.Objectedu.ou.kmi.buddyspace.core.BSPresencesOfJID
- public class BSPresencesOfJID
- extends java.lang.Object
BSPresencesOfJID
contains presence information
about all resources the given JID
is logged from.
It includes list BSPresenceInfo
records.
Field Summary | |
protected JID |
jid
|
protected java.util.Hashtable |
presences
|
Constructor Summary | |
BSPresencesOfJID(BSPresenceInfo pi)
Constructs BSPresencesOfJID . |
|
BSPresencesOfJID(org.jabber.jabberbeans.Presence p)
Constructs BSPresencesOfJID from Presence
packet. |
Method Summary | |
void |
changePresence(BSPresenceInfo pi)
Changes presence of JID according to given Presence
packet. |
void |
changePresence(org.jabber.jabberbeans.Presence p)
Changes presence of JID according to given Presence
packet. |
java.util.Enumeration |
getAllPresences()
Returns Enumeration of all BSPresenceInfo s
which are available. |
BSPresenceInfo |
getBestPresence()
Returns the "most online" BSPresenceInfo . |
static BSPresenceInfo |
getBetterPresence(BSPresenceInfo p1,
BSPresenceInfo p2)
Compares the given presences and returns the one "more online". |
BSPresenceInfo |
getJIDPresence(JID jid)
Returns BSPresenceInfo of JID. |
boolean |
isAvailable()
Returns true if the JID is available at least from one
resource. |
protected void |
setPresence(BSPresenceInfo pi)
Sets presence. |
protected void |
setPresence(org.jabber.jabberbeans.Presence p)
Sets presence according to given Presence packet. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
presences
protected java.util.Hashtable presences
jid
protected JID jid
Constructor Detail |
BSPresencesOfJID
public BSPresencesOfJID(org.jabber.jabberbeans.Presence p)
- Constructs
BSPresencesOfJID
fromPresence
packet.
BSPresencesOfJID
public BSPresencesOfJID(BSPresenceInfo pi)
- Constructs
BSPresencesOfJID
.
Method Detail |
changePresence
public void changePresence(org.jabber.jabberbeans.Presence p)
- Changes presence of
JID
according to givenPresence
packet.
changePresence
public void changePresence(BSPresenceInfo pi)
- Changes presence of
JID
according to givenPresence
packet.
setPresence
protected void setPresence(org.jabber.jabberbeans.Presence p)
- Sets presence according to given
Presence
packet. This is internal function and doesn't test JID,...
setPresence
protected void setPresence(BSPresenceInfo pi)
- Sets presence.
This is internal function and doesn't test JID,...
isAvailable
public boolean isAvailable()
- Returns true if the
JID
is available at least from one resource. It means if the hashtable is not empty.
getBestPresence
public BSPresenceInfo getBestPresence()
- Returns the "most online"
BSPresenceInfo
.
getBetterPresence
public static BSPresenceInfo getBetterPresence(BSPresenceInfo p1, BSPresenceInfo p2)
- Compares the given presences and returns the one "more online".
getJIDPresence
public BSPresenceInfo getJIDPresence(JID jid)
- Returns
BSPresenceInfo
of JID. If the JID has resource, returns presence for the resource. Otherwise returns the best presence.
getAllPresences
public java.util.Enumeration getAllPresences()
- Returns
Enumeration
of allBSPresenceInfo
s which are available. If the JID is not available, returns null.
|
|||||||||
Home >> All >> edu >> ou >> kmi >> buddyspace >> [ core overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |