com.cinecolombia.cinecolombia.control.ejb.handlers
Class ManejoUsersEjbHandler

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

public class ManejoUsersEjbHandler
extends StateHandlerSupport

manejoUsers usecase: handler of user requests in the Services layer

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

Field Summary
private  Debug debug
           
 
Fields inherited from class com.cinecolombia.cinecolombia.control.ejb.handlers.StateHandlerSupport
machine
 
Constructor Summary
ManejoUsersEjbHandler()
           
 
Method Summary
 java.lang.Object perform(CinecolombiaEvent event)
          principal method that process a user request invoking Model EJBs methods
private  java.util.ArrayList performDELETE_USER(ManejoUsersEvent ev)
          auxiliary method that processes an ManejoUsersEvent with DELETE_USER action.
private  java.util.ArrayList performGET_USER(ManejoUsersEvent ev)
          auxiliary method that processes an ManejoUsersEvent with GET_USER action.
private  java.util.ArrayList performLIST(ManejoUsersEvent ev)
          auxiliary method that processes an ManejoUsersEvent with LIST action.
private  java.util.ArrayList performSAVE_USER(ManejoUsersEvent ev)
          auxiliary method that processes an ManejoUsersEvent with SAVE_USER 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.cinecolombia.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

ManejoUsersEjbHandler

public ManejoUsersEjbHandler()
Method Detail

perform

public java.lang.Object perform(CinecolombiaEvent event)
                         throws CinecolombiaEventException
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:
CinecolombiaEventException

performLIST

private java.util.ArrayList performLIST(ManejoUsersEvent ev)
                                 throws CinecolombiaEventException
auxiliary method that processes an ManejoUsersEvent with LIST action.

Parameters:
ev - event of manejoUsers usecase
Returns:
answer to request
Throws:
CinecolombiaEventException

performGET_USER

private java.util.ArrayList performGET_USER(ManejoUsersEvent ev)
                                     throws CinecolombiaEventException
auxiliary method that processes an ManejoUsersEvent with GET_USER action.

Parameters:
ev - event of manejoUsers usecase
Returns:
answer to request
Throws:
CinecolombiaEventException

performSAVE_USER

private java.util.ArrayList performSAVE_USER(ManejoUsersEvent ev)
                                      throws CinecolombiaEventException
auxiliary method that processes an ManejoUsersEvent with SAVE_USER action.

Parameters:
ev - event of manejoUsers usecase
Returns:
answer to request
Throws:
CinecolombiaEventException

performDELETE_USER

private java.util.ArrayList performDELETE_USER(ManejoUsersEvent ev)
                                        throws CinecolombiaEventException
auxiliary method that processes an ManejoUsersEvent with DELETE_USER action.

Parameters:
ev - event of manejoUsers usecase
Returns:
answer to request
Throws:
CinecolombiaEventException

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