org.mobicents.slee.resource.parlay.csapi.jr.ui.activity.uimanager
Class UIManagerImpl

java.lang.Object
  extended by org.mobicents.slee.resource.parlay.csapi.jr.ui.activity.uimanager.UIManagerImpl
All Implemented Interfaces:
org.mobicents.csapi.jr.slee.IpServiceConnection, org.mobicents.csapi.jr.slee.ui.IpUIManagerConnection, UIManager, ServiceSession

public class UIManagerImpl
extends java.lang.Object
implements UIManager


Field Summary
 
Fields inherited from interface org.mobicents.slee.resource.parlay.session.ServiceSession
GenericCallControl, MultiPartyCallControl, UserInteraction
 
Constructor Summary
UIManagerImpl(ParlaySession parlaySession, FwSession fwSession, org.csapi.ui.IpUIManager ipUIManager, UiListener eventListener, ActivityManager activityManager, org.mobicents.csapi.jr.slee.TpServiceIdentifier serviceIdentifier)
           
 
Method Summary
protected  void activateIpAppUI()
           
protected  void activateIpAppUICall()
           
protected  void activateIpAppUIManager()
           
 void addUI(int uiSessionID, AbstractUI ui)
           
 void changeNotification(int assignmentID, org.csapi.ui.TpUIEventCriteria eventCriteria)
           
 void closeConnection()
           
 int createNotification(org.csapi.ui.TpUIEventCriteria eventCriteria)
           
protected  void createPOAs(org.omg.CORBA.Policy[] policies)
           
 org.mobicents.csapi.jr.slee.ui.TpUIIdentifier createUI(org.csapi.TpAddress userAddress)
           
 UICall createUICall(org.csapi.ui.TpUICallIdentifier corbaTpUIIdentifier)
           
 org.mobicents.csapi.jr.slee.ui.TpUICallIdentifier createUICall(org.mobicents.csapi.jr.slee.ui.TpUITargetObject sleeUiTargetObject)
           
 UIGeneric createUIGeneric(org.csapi.ui.TpUIIdentifier corbaTpUIIdentifier)
           
protected  void deactivateIpAppUI()
           
protected  void deactivateIpAppUICall()
           
protected  void deactivateIpAppUIManager()
           
 void destroy()
          Destroys this session
 void destroyNotification(int assignmentID)
           
 void disableNotifications()
           
 int enableNotifications()
           
 AbstractUI getAbstractUI(int uiSessionID)
          Used to get activity when caller doesnt need to distinguish what type of UI is being handled.
 org.csapi.ui.IpAppUI getIpAppUI()
          Return the underlying gateway interface.
 org.csapi.ui.IpAppUICall getIpAppUICall()
          Return the underlying gateway interface.
 IpAppUIImpl getIpAppUIImpl()
           
 org.mobicents.csapi.jr.slee.ui.IpUICallConnection getIpUICallConnection(org.mobicents.csapi.jr.slee.ui.TpUICallIdentifier uICallIdentifier)
           
 org.mobicents.csapi.jr.slee.ui.IpUIConnection getIpUIConnection(org.mobicents.csapi.jr.slee.ui.TpUIIdentifier uiIdentifier)
           
 org.csapi.ui.IpUIManager getIpUIManager()
           
 org.csapi.ui.TpUIEventCriteriaResult[] getNotification()
           
 org.mobicents.csapi.jr.slee.TpServiceIdentifier getTpServiceIdentifier()
          Returns an identifier for the underlying service session
 int getType()
          Return an int identifying the type of this service.
 UICall getUICall(int uiSessionID)
          Used to get activity when caller expects a UICall
 UIGeneric getUIGeneric(int uiSessionID)
          Used to get activity when caller expects a UIGeneric
 void init()
          Initialises this session.
 AbstractUI removeUI(int uiSessionID)
           
 void reportEventNotification(org.mobicents.csapi.jr.slee.ui.TpUIIdentifier userInteraction, org.csapi.ui.TpUIEventNotificationInfo eventNotificationInfo, int assignmentID)
           
 void reportNotification(org.mobicents.csapi.jr.slee.ui.TpUIIdentifier userInteraction, org.csapi.ui.TpUIEventInfo eventInfo, int assignmentID)
           
 void userInteractionAborted(org.csapi.ui.TpUIIdentifier userInteraction)
           
 void userInteractionNotificationContinued()
           
 void userInteractionNotificationInterrupted()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIManagerImpl

public UIManagerImpl(ParlaySession parlaySession,
                     FwSession fwSession,
                     org.csapi.ui.IpUIManager ipUIManager,
                     UiListener eventListener,
                     ActivityManager activityManager,
                     org.mobicents.csapi.jr.slee.TpServiceIdentifier serviceIdentifier)
Parameters:
parlaySession - needed so that we can get access to GCCS or MPCC manager activities for translating UI target objects in Call Related U
fwSession -
ipUIManager -
eventListener -
activityManager -
serviceIdentifier -
Method Detail

init

public void init()
          throws javax.slee.resource.ResourceException
Description copied from interface: ServiceSession
Initialises this session.

Specified by:
init in interface ServiceSession
Throws:
javax.slee.resource.ResourceException

activateIpAppUI

protected void activateIpAppUI()
                        throws javax.slee.resource.ResourceException
Throws:
javax.slee.resource.ResourceException

activateIpAppUICall

protected void activateIpAppUICall()
                            throws javax.slee.resource.ResourceException
Throws:
javax.slee.resource.ResourceException

activateIpAppUIManager

protected void activateIpAppUIManager()
                               throws javax.slee.resource.ResourceException
Throws:
javax.slee.resource.ResourceException

createPOAs

protected void createPOAs(org.omg.CORBA.Policy[] policies)
                   throws javax.slee.resource.ResourceException
Parameters:
policies -
Throws:
javax.slee.resource.ResourceException

deactivateIpAppUI

protected void deactivateIpAppUI()

deactivateIpAppUICall

protected void deactivateIpAppUICall()

deactivateIpAppUIManager

protected void deactivateIpAppUIManager()

destroy

public void destroy()
Description copied from interface: ServiceSession
Destroys this session

Specified by:
destroy in interface ServiceSession

getAbstractUI

public AbstractUI getAbstractUI(int uiSessionID)
Description copied from interface: UIManager
Used to get activity when caller doesnt need to distinguish what type of UI is being handled.

Specified by:
getAbstractUI in interface UIManager
Returns:
may be either a UIGeneric or a UICall.

getUIGeneric

public UIGeneric getUIGeneric(int uiSessionID)
Description copied from interface: UIManager
Used to get activity when caller expects a UIGeneric

Specified by:
getUIGeneric in interface UIManager
Returns:

getUICall

public UICall getUICall(int uiSessionID)
Description copied from interface: UIManager
Used to get activity when caller expects a UICall

Specified by:
getUICall in interface UIManager
Returns:

removeUI

public AbstractUI removeUI(int uiSessionID)
Specified by:
removeUI in interface UIManager
Returns:

addUI

public void addUI(int uiSessionID,
                  AbstractUI ui)
Specified by:
addUI in interface UIManager

createUIGeneric

public UIGeneric createUIGeneric(org.csapi.ui.TpUIIdentifier corbaTpUIIdentifier)
Specified by:
createUIGeneric in interface UIManager

createUICall

public UICall createUICall(org.csapi.ui.TpUICallIdentifier corbaTpUIIdentifier)

getIpUIConnection

public org.mobicents.csapi.jr.slee.ui.IpUIConnection getIpUIConnection(org.mobicents.csapi.jr.slee.ui.TpUIIdentifier uiIdentifier)
                                                                throws javax.slee.resource.ResourceException
Specified by:
getIpUIConnection in interface org.mobicents.csapi.jr.slee.ui.IpUIManagerConnection
Throws:
javax.slee.resource.ResourceException

getIpUICallConnection

public org.mobicents.csapi.jr.slee.ui.IpUICallConnection getIpUICallConnection(org.mobicents.csapi.jr.slee.ui.TpUICallIdentifier uICallIdentifier)
                                                                        throws javax.slee.resource.ResourceException
Specified by:
getIpUICallConnection in interface org.mobicents.csapi.jr.slee.ui.IpUIManagerConnection
Throws:
javax.slee.resource.ResourceException

closeConnection

public void closeConnection()
                     throws javax.slee.resource.ResourceException
Specified by:
closeConnection in interface org.mobicents.csapi.jr.slee.IpServiceConnection
Throws:
javax.slee.resource.ResourceException

getIpAppUI

public org.csapi.ui.IpAppUI getIpAppUI()
Description copied from interface: UIManager
Return the underlying gateway interface.

Specified by:
getIpAppUI in interface UIManager
Returns:

getIpAppUICall

public org.csapi.ui.IpAppUICall getIpAppUICall()
Description copied from interface: UIManager
Return the underlying gateway interface.

Specified by:
getIpAppUICall in interface UIManager
Returns:

getTpServiceIdentifier

public org.mobicents.csapi.jr.slee.TpServiceIdentifier getTpServiceIdentifier()
Description copied from interface: ServiceSession
Returns an identifier for the underlying service session

Specified by:
getTpServiceIdentifier in interface UIManager
Specified by:
getTpServiceIdentifier in interface ServiceSession
Returns:

getType

public int getType()
Description copied from interface: ServiceSession
Return an int identifying the type of this service.

Specified by:
getType in interface ServiceSession
Returns:

getIpAppUIImpl

public IpAppUIImpl getIpAppUIImpl()
Returns:
Returns the ipAppUIImpl.

getIpUIManager

public org.csapi.ui.IpUIManager getIpUIManager()
Returns:
Returns the ipUIManager.

userInteractionAborted

public void userInteractionAborted(org.csapi.ui.TpUIIdentifier userInteraction)
Specified by:
userInteractionAborted in interface UIManager

reportNotification

public void reportNotification(org.mobicents.csapi.jr.slee.ui.TpUIIdentifier userInteraction,
                               org.csapi.ui.TpUIEventInfo eventInfo,
                               int assignmentID)
Specified by:
reportNotification in interface UIManager

userInteractionNotificationInterrupted

public void userInteractionNotificationInterrupted()
Specified by:
userInteractionNotificationInterrupted in interface UIManager

userInteractionNotificationContinued

public void userInteractionNotificationContinued()
Specified by:
userInteractionNotificationContinued in interface UIManager

reportEventNotification

public void reportEventNotification(org.mobicents.csapi.jr.slee.ui.TpUIIdentifier userInteraction,
                                    org.csapi.ui.TpUIEventNotificationInfo eventNotificationInfo,
                                    int assignmentID)
Specified by:
reportEventNotification in interface UIManager

createUI

public org.mobicents.csapi.jr.slee.ui.TpUIIdentifier createUI(org.csapi.TpAddress userAddress)
                                                       throws org.csapi.TpCommonExceptions,
                                                              org.csapi.P_INVALID_NETWORK_STATE,
                                                              javax.slee.resource.ResourceException
Specified by:
createUI in interface org.mobicents.csapi.jr.slee.ui.IpUIManagerConnection
Throws:
org.csapi.TpCommonExceptions
org.csapi.P_INVALID_NETWORK_STATE
javax.slee.resource.ResourceException

createUICall

public org.mobicents.csapi.jr.slee.ui.TpUICallIdentifier createUICall(org.mobicents.csapi.jr.slee.ui.TpUITargetObject sleeUiTargetObject)
                                                               throws org.csapi.TpCommonExceptions,
                                                                      org.csapi.P_INVALID_NETWORK_STATE,
                                                                      javax.slee.resource.ResourceException
Specified by:
createUICall in interface org.mobicents.csapi.jr.slee.ui.IpUIManagerConnection
Throws:
org.csapi.TpCommonExceptions
org.csapi.P_INVALID_NETWORK_STATE
javax.slee.resource.ResourceException

createNotification

public int createNotification(org.csapi.ui.TpUIEventCriteria eventCriteria)
                       throws org.csapi.TpCommonExceptions,
                              org.csapi.P_INVALID_CRITERIA,
                              javax.slee.resource.ResourceException
Specified by:
createNotification in interface org.mobicents.csapi.jr.slee.ui.IpUIManagerConnection
Throws:
org.csapi.TpCommonExceptions
org.csapi.P_INVALID_CRITERIA
javax.slee.resource.ResourceException

destroyNotification

public void destroyNotification(int assignmentID)
                         throws org.csapi.TpCommonExceptions,
                                org.csapi.P_INVALID_ASSIGNMENT_ID,
                                javax.slee.resource.ResourceException
Specified by:
destroyNotification in interface org.mobicents.csapi.jr.slee.ui.IpUIManagerConnection
Throws:
org.csapi.TpCommonExceptions
org.csapi.P_INVALID_ASSIGNMENT_ID
javax.slee.resource.ResourceException

changeNotification

public void changeNotification(int assignmentID,
                               org.csapi.ui.TpUIEventCriteria eventCriteria)
                        throws org.csapi.TpCommonExceptions,
                               org.csapi.P_INVALID_ASSIGNMENT_ID,
                               org.csapi.P_INVALID_CRITERIA,
                               javax.slee.resource.ResourceException
Specified by:
changeNotification in interface org.mobicents.csapi.jr.slee.ui.IpUIManagerConnection
Throws:
org.csapi.TpCommonExceptions
org.csapi.P_INVALID_ASSIGNMENT_ID
org.csapi.P_INVALID_CRITERIA
javax.slee.resource.ResourceException

getNotification

public org.csapi.ui.TpUIEventCriteriaResult[] getNotification()
                                                       throws org.csapi.TpCommonExceptions,
                                                              javax.slee.resource.ResourceException
Specified by:
getNotification in interface org.mobicents.csapi.jr.slee.ui.IpUIManagerConnection
Throws:
org.csapi.TpCommonExceptions
javax.slee.resource.ResourceException

enableNotifications

public int enableNotifications()
                        throws org.csapi.TpCommonExceptions,
                               javax.slee.resource.ResourceException
Specified by:
enableNotifications in interface org.mobicents.csapi.jr.slee.ui.IpUIManagerConnection
Throws:
org.csapi.TpCommonExceptions
javax.slee.resource.ResourceException

disableNotifications

public void disableNotifications()
                          throws org.csapi.TpCommonExceptions,
                                 javax.slee.resource.ResourceException
Specified by:
disableNotifications in interface org.mobicents.csapi.jr.slee.ui.IpUIManagerConnection
Throws:
org.csapi.TpCommonExceptions
javax.slee.resource.ResourceException


Copyright © 2008. All Rights Reserved.