| 
 | Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jivesoftware.smackx.workgroup.agent.Agent
public class Agent
The Agent class is used to represent one agent in a Workgroup Queue.
| Method Summary | |
|---|---|
|  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. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static Collection<String> getWorkgroups(String serviceJID,
                                               String agentJID,
                                               Connection connection)
                                        throws XMPPException
XMPPExceptionpublic String getUser()
public String getName()
               throws XMPPException
XMPPException
public 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.| 
 | Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||