Smack

org.jivesoftware.smackx.workgroup.agent
Class WorkgroupQueue.Status

java.lang.Object
  extended by org.jivesoftware.smackx.workgroup.agent.WorkgroupQueue.Status
Enclosing class:
WorkgroupQueue

public static class WorkgroupQueue.Status
extends Object

A class to represent the status of the workgroup. The possible values are:


Field Summary
static WorkgroupQueue.Status ACTIVE
          The queue is active but NOT accepting new chat requests.
static WorkgroupQueue.Status CLOSED
          The queue is NOT active and NOT accepting new chat requests.
static WorkgroupQueue.Status OPEN
          The queue is active and accepting new chat requests.
 
Method Summary
static WorkgroupQueue.Status fromString(String type)
          Converts a String into the corresponding status.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OPEN

public static final WorkgroupQueue.Status OPEN
The queue is active and accepting new chat requests.


ACTIVE

public static final WorkgroupQueue.Status ACTIVE
The queue is active but NOT accepting new chat requests. This state might occur when the workgroup has closed because regular support hours have closed, but there are still several requests left in the queue.


CLOSED

public static final WorkgroupQueue.Status CLOSED
The queue is NOT active and NOT accepting new chat requests.

Method Detail

fromString

public static WorkgroupQueue.Status fromString(String type)
Converts a String into the corresponding status. Valid String values that can be converted to a status are: "open", "active", and "closed".

Parameters:
type - the String value to covert.
Returns:
the corresponding Type.

toString

public String toString()
Overrides:
toString in class Object

Smack

Copyright © 2003-2007 Jive Software.