Class WorkgroupQueue.Status
- java.lang.Object
-
- org.jivesoftware.smackx.workgroup.agent.WorkgroupQueue.Status
-
- Enclosing class:
- WorkgroupQueue
public static final class WorkgroupQueue.Status extends java.lang.Object
A class to represent the status of the workgroup. The possible values are:- WorkgroupQueue.Status.OPEN -- the queue is active and accepting new chat requests.
- WorkgroupQueue.Status.ACTIVE -- the queue is active but NOT accepting new chat requests.
- WorkgroupQueue.Status.CLOSED -- the queue is NOT active and NOT accepting new chat requests.
-
-
Field Summary
Fields Modifier and Type Field Description 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WorkgroupQueue.Status
fromString(java.lang.String type)
Converts a String into the corresponding status.java.lang.String
toString()
-
-
-
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(java.lang.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 java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-