public class Agent extends Object
Agent class is used to represent one agent in a Workgroup Queue.| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Return the agents name.
|
String |
getUser()
Return the agents JID
|
static Collection<String> |
getWorkgroups(String serviceJID,
String agentJID,
Connection connection) |
void |
setName(String newName)
Changes the name of the agent in the server.
|
public static Collection<String> getWorkgroups(String serviceJID, String agentJID, Connection connection) throws XMPPException
XMPPExceptionpublic String getUser()
public String getName() throws XMPPException
XMPPExceptionpublic void setName(String newName) throws XMPPException
newName - the new name of the agent.XMPPException - if the agent is not allowed to change his name or no response was
obtained from the server.Copyright © 2003-2007 Jive Software.