Class WorkgroupQueue.Status

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

public static final class WorkgroupQueue.Status extends 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 Details

    • 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 Details

    • 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