public class Agent
extends java.lang.Object
Agent
class is used to represent one agent in a Workgroup Queue.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Return the agents name.
|
java.lang.String |
getUser()
Return the agents JID
|
static java.util.Collection<java.lang.String> |
getWorkgroups(java.lang.String serviceJID,
java.lang.String agentJID,
Connection connection) |
void |
setName(java.lang.String newName)
Changes the name of the agent in the server.
|
public static java.util.Collection<java.lang.String> getWorkgroups(java.lang.String serviceJID, java.lang.String agentJID, Connection connection) throws XMPPException
XMPPException
public java.lang.String getUser()
public java.lang.String getName() throws XMPPException
XMPPException
public void setName(java.lang.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.