com.multisoftgroup.jerry.webchat.managers
Class PresenceManager

java.lang.Object
  extended by com.multisoftgroup.jerry.webchat.managers.PresenceManager

public class PresenceManager
extends Object

This manager provides an information about operator availability. Also it is used for output a correct presence image (depends on operators status)

Author:
Pavel Savin

Method Summary
static PresenceManager getInstance()
           
 boolean isOnline(String accountName)
           
 AvailableOperator nextAvailableOperator(JerryAccount account)
           
 void outputPresenceImage(OutputStream outStream, String accountName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static PresenceManager getInstance()

nextAvailableOperator

public AvailableOperator nextAvailableOperator(JerryAccount account)

isOnline

public boolean isOnline(String accountName)

outputPresenceImage

public void outputPresenceImage(OutputStream outStream,
                                String accountName)