|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jivesoftware.smackx.workgroup.agent.AgentRoster
public class AgentRoster
Manges information about the agents in a workgroup and their presence.
AgentSession.getAgentRoster()
Method Summary | |
---|---|
void |
addListener(AgentRosterListener listener)
Adds a listener to this roster. |
boolean |
contains(String jid)
Returns true if the specified XMPP address is an agent in the workgroup. |
int |
getAgentCount()
Returns a count of all agents in the workgroup. |
Set |
getAgents()
Returns all agents (String JID values) in the workgroup. |
Presence |
getPresence(String user)
Returns the presence info for a particular agent, or null if the agent is unavailable (offline) or if no presence information is available. |
void |
reload()
Reloads the entire roster from the server. |
void |
removeListener(AgentRosterListener listener)
Removes a listener from this roster. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void reload()
public void addListener(AgentRosterListener listener)
listener
- an agent roster listener.public void removeListener(AgentRosterListener listener)
listener
- a roster listener.public int getAgentCount()
public Set getAgents()
public boolean contains(String jid)
jid
- the XMPP address of the agent (eg "jsmith@example.com"). The
address can be in any valid format (e.g. "domain/resource", "user@domain"
or "user@domain/resource").
public Presence getPresence(String user)
user
- a fully qualified xmpp JID. The address could be in any valid format (e.g.
"domain/resource", "user@domain" or "user@domain/resource").
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |