com.instantbank.servicing.control.ejb
Interface ServicingController

All Superinterfaces:
javax.ejb.EJBObject, java.rmi.Remote

public interface ServicingController
extends javax.ejb.EJBObject

This is the EJB-tier controller of the MVC. It is implemented as a session EJB. It controls all the activities that happen in a client session (managing update events through handleEvent() method) It also provides mechanisms to access other session EJBs and variables: get services for obtaining session variables and for contacting EJBs (entity or session) which are instanced for the user.

Author:
Instant-bank (Consuelo Franky)

Method Summary
 Parameter getParameter(java.lang.String companyId, java.lang.Long userId)
          get reference to Parameter EJB
 java.lang.String getW()
           
 java.util.Collection handleEvent(ServicingEvent ese)
          Principal service: Feeds the specified event to the state machine of the business logic.
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

handleEvent

public java.util.Collection handleEvent(ServicingEvent ese)
                                 throws java.rmi.RemoteException,
                                        ServicingEventException
Principal service: Feeds the specified event to the state machine of the business logic.
Parameters:
ese - event associated to a user request
Returns:
a list of models (EJBs names) that got updated because of the processing of this event. In addition, the first element of the list contains the service answer (or the "" string when this answer is not required)
Throws:
ServicingEventException -  
java.rmi.RemoteException - Description of the Exception

getParameter

public Parameter getParameter(java.lang.String companyId,
                              java.lang.Long userId)
                       throws java.rmi.RemoteException
get reference to Parameter EJB
Parameters:
companyId - current company
userId - current user
Returns:
the Parameter session bean for this session
Throws:
java.rmi.RemoteException -  

getW

public java.lang.String getW()
                      throws java.rmi.RemoteException
Returns:
the w variable for this session
Throws:
java.rmi.RemoteException -