com.cinecolombia.interfases.control.ejb.handlers
Class ProgramacionEjbHandler

java.lang.Object
  |
  +--com.cinecolombia.interfases.control.ejb.handlers.StateHandlerSupport
        |
        +--com.cinecolombia.interfases.control.ejb.handlers.ProgramacionEjbHandler
All Implemented Interfaces:
java.io.Serializable, StateHandler

public class ProgramacionEjbHandler
extends StateHandlerSupport

programacion usecase: handler of user requests in the Services layer

Author:
CincoSOFT
See Also:
Serialized Form
Created:
Julio 2003

Field Summary
private  Debug debug
           
 
Fields inherited from class com.cinecolombia.interfases.control.ejb.handlers.StateHandlerSupport
machine
 
Constructor Summary
ProgramacionEjbHandler()
           
 
Method Summary
 java.lang.Object perform(InterfasesEvent event)
          principal method that process a user request invoking Model EJBs methods
private  java.util.List performCARGAR_PROGRAMACION(ProgramacionEvent ev)
          Auxiliary method that processes an ProgramacionEvent with CARGAR_PROGRAMACION action.
private  java.util.List performGUARDAR_PROGRAMACION(ProgramacionEvent ev)
          Auxiliary method that processes an ProgramacionEvent with GUARDAR_PROGRAMACION action.
private  java.util.List performLIST(ProgramacionEvent ev)
          Auxiliary method that processes an ProgramacionEvent with LIST action.
private  java.lang.String processProblem(java.lang.Exception e, java.lang.String messageEx)
          auxiliary method that processes a problem
 
Methods inherited from class com.cinecolombia.interfases.control.ejb.handlers.StateHandlerSupport
doEnd, doStart, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

private Debug debug
Constructor Detail

ProgramacionEjbHandler

public ProgramacionEjbHandler()
Method Detail

perform

public java.lang.Object perform(InterfasesEvent event)
                         throws InterfasesEventException
principal method that process a user request invoking Model EJBs methods

Specified by:
perform in interface StateHandler
Overrides:
perform in class StateHandlerSupport
Parameters:
event - request data
Returns:
answer to request
Throws:
InterfasesEventException

performLIST

private java.util.List performLIST(ProgramacionEvent ev)
                            throws InterfasesEventException
Auxiliary method that processes an ProgramacionEvent with LIST action.

Parameters:
ev - event of programacion usecase
Returns:
answer to request
Throws:
InterfasesEventException

performCARGAR_PROGRAMACION

private java.util.List performCARGAR_PROGRAMACION(ProgramacionEvent ev)
                                           throws InterfasesEventException
Auxiliary method that processes an ProgramacionEvent with CARGAR_PROGRAMACION action.

Parameters:
ev - event of programacion usecase
Returns:
answer to request
Throws:
InterfasesEventException

performGUARDAR_PROGRAMACION

private java.util.List performGUARDAR_PROGRAMACION(ProgramacionEvent ev)
                                            throws InterfasesEventException
Auxiliary method that processes an ProgramacionEvent with GUARDAR_PROGRAMACION action.

Parameters:
ev - event of programacion usecase
Returns:
answer to request
Throws:
InterfasesEventException

processProblem

private java.lang.String processProblem(java.lang.Exception e,
                                        java.lang.String messageEx)
auxiliary method that processes a problem

Parameters:
e - Exception
messageEx - application message associated to e
Returns:
String with the complet problem and stacktrace