com.cinecolombia.cinecolombia.control.ejb
Interface CinecolombiaController

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

public interface CinecolombiaController
extends javax.ejb.EJBObject

This is the EJB-tier controller of the MVC for cinecolombia module. 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:
CincoSOFT
Created:
Junio 2003

Method Summary
 Security getSecurity(java.lang.String companyId, java.lang.Long userId)
          get reference to Security EJB
 java.lang.String getW()
          Example of session variables:
 java.util.Collection handleEvent(CinecolombiaEvent 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(CinecolombiaEvent ese)
                                 throws java.rmi.RemoteException,
                                        CinecolombiaEventException
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:
CinecolombiaEventException
java.rmi.RemoteException - Description of the Exception

getSecurity

public Security getSecurity(java.lang.String companyId,
                            java.lang.Long userId)
                     throws java.rmi.RemoteException
get reference to Security EJB

Parameters:
companyId - Description of the Parameter
userId - Description of the Parameter
Returns:
the Security session bean for this session
Throws:
java.rmi.RemoteException

getW

public java.lang.String getW()
                      throws java.rmi.RemoteException
Example of session variables:

Returns:
the w variable for this session
Throws:
java.rmi.RemoteException