com.cinecolombia.interfases.control.web.handlers
Class ComplejosRequestHandler

java.lang.Object
  |
  +--com.cinecolombia.interfases.control.web.handlers.RequestHandlerSupport
        |
        +--com.cinecolombia.interfases.control.web.handlers.ComplejosRequestHandler
All Implemented Interfaces:
RequestHandler

public class ComplejosRequestHandler
extends RequestHandlerSupport

complejos usecase: handler of user requests in the Application layer

Author:
CincoSOFT
Created:
Julio 2003

Field Summary
(package private)  java.lang.String companyId
           
(package private)  javax.servlet.ServletContext context
           
private  Debug debug
           
private  boolean gotoDB
           
(package private)  java.lang.Long userId
           
 
Constructor Summary
ComplejosRequestHandler()
           
 
Method Summary
private  InterfasesEvent createEventForACTUALIZAR_SALA(javax.servlet.http.HttpServletRequest request)
          method for instantiating a ComplejosEvent demanding a service for action ACTUALIZAR_SALA
private  InterfasesEvent createEventForACTUALIZAR_UBICACION(javax.servlet.http.HttpServletRequest request)
          method for instantiating a ComplejosEvent demanding a service for action ACTUALIZAR_UBICACION
private  InterfasesEvent createEventForBUSCAR_UBICACIONES(javax.servlet.http.HttpServletRequest request)
          method for instantiating a ComplejosEvent demanding a service for action BUSCAR_UBICACIONES
private  InterfasesEvent createEventForDETALLE_SALAS(javax.servlet.http.HttpServletRequest request)
          method for instantiating a ComplejosEvent demanding a service for action DETALLE_SALAS
private  InterfasesEvent createEventForDETALLE_UBICACIONES(javax.servlet.http.HttpServletRequest request)
          method for instantiating a ComplejosEvent demanding a service for action DETALLE_UBICACIONES
private  InterfasesEvent createEventForDETALLES_COMPLEJO(javax.servlet.http.HttpServletRequest request)
          method for instantiating a ComplejosEvent demanding a service for action DETALLES_COMPLEJO
private  InterfasesEvent createEventForELIMINAR_COMPLEJO(javax.servlet.http.HttpServletRequest request)
          method for instantiating a ComplejosEvent demanding a service for action ELIMINAR_COMPLEJO
private  InterfasesEvent createEventForELIMINAR_SALA(javax.servlet.http.HttpServletRequest request)
          method for instantiating a ComplejosEvent demanding a service for action ELIMINAR_SALA
private  InterfasesEvent createEventForELIMINAR_UBICACION(javax.servlet.http.HttpServletRequest request)
          method for instantiating a ComplejosEvent demanding a service for action ELIMINAR_UBICACION
private  InterfasesEvent createEventForGUARDAR_COMPLEJO(javax.servlet.http.HttpServletRequest request)
          method for instantiating a ComplejosEvent demanding a service for action GUARDAR_COMPLEJO
private  InterfasesEvent createEventForLIST(javax.servlet.http.HttpServletRequest request)
          method for instantiating a ComplejosEvent demanding a service for action LIST
private  InterfasesEvent createEventForNUEVA_SALA(javax.servlet.http.HttpServletRequest request)
          method for instantiating a ComplejosEvent demanding a service for action NUEVA_SALA
private  InterfasesEvent createEventForNUEVA_UBICACION(javax.servlet.http.HttpServletRequest request)
          method for instantiating a ComplejosEvent demanding a service for action NUEVA_UBICACION
private  InterfasesEvent createEventForNUEVO_COMPLEJO(javax.servlet.http.HttpServletRequest request)
          method for instantiating a ComplejosEvent demanding a service for action NUEVO_COMPLEJO
private  InterfasesEvent createEventForREGRESAR_DE_AYUDA_TIPOS_PRECIO_COMPLEJO(javax.servlet.http.HttpServletRequest request)
          method for instantiating a ComplejosEvent demanding a service for action REGRESAR_DE_AYUDA_TIPOS_PRECIO_COMPLEJO
private  InterfasesEvent createEventForREGRESAR_DE_AYUDA_UBICACIONES_COMPLEJO(javax.servlet.http.HttpServletRequest request)
          method for instantiating a ComplejosEvent demanding a service for action REGRESAR_DE_AYUDA_UBICACIONES_COMPLEJO
private  InterfasesEvent createEventForREGRESAR_DE_INCONSISTENCIAS_COMPLEJO(javax.servlet.http.HttpServletRequest request)
          method for instantiating a ComplejosEvent demanding a service for action REGRESAR_DE_INCONSISTENCIAS_COMPLEJO
private  InterfasesEvent createEventForVER_TIPOS_PRECIO(javax.servlet.http.HttpServletRequest request)
          method for instantiating a ComplejosEvent demanding a service for action VER_TIPOS_PRECIO
private  InterfasesEvent createEventForVER_UBICACIONES(javax.servlet.http.HttpServletRequest request)
          method for instantiating a ComplejosEvent demanding a service for action VER_UBICACIONES
private  java.util.List parseXMLComplejos(java.lang.String xmlComplejosItems)
          auxiliary method for parsing a XML string containing items to update in complejos data
 InterfasesEvent processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext context)
          principal method that process a user request instantiating a ComplejosEvent with the user request data
 
Methods inherited from class com.cinecolombia.interfases.control.web.handlers.RequestHandlerSupport
doEnd, doStart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

private Debug debug

context

javax.servlet.ServletContext context

gotoDB

private boolean gotoDB

companyId

java.lang.String companyId

userId

java.lang.Long userId
Constructor Detail

ComplejosRequestHandler

public ComplejosRequestHandler()
Method Detail

processRequest

public InterfasesEvent processRequest(javax.servlet.http.HttpServletRequest request,
                                      javax.servlet.ServletContext context)
                               throws InterfasesEventException
principal method that process a user request instantiating a ComplejosEvent with the user request data

Parameters:
request - of MainServlet
context - of MainServlet
Returns:
ComplejosEvent with the user request data (subclass of InterfasesEvent)
Throws:
InterfasesEventException

createEventForLIST

private InterfasesEvent createEventForLIST(javax.servlet.http.HttpServletRequest request)
                                    throws InterfasesEventException
method for instantiating a ComplejosEvent demanding a service for action LIST

Parameters:
request - of MainServlet
Returns:
ComplejosEvent with the user request data (subclass of InterfasesEvent)
Throws:
InterfasesEventException

createEventForNUEVO_COMPLEJO

private InterfasesEvent createEventForNUEVO_COMPLEJO(javax.servlet.http.HttpServletRequest request)
                                              throws InterfasesEventException
method for instantiating a ComplejosEvent demanding a service for action NUEVO_COMPLEJO

Parameters:
request - of MainServlet
Returns:
ComplejosEvent with the user request data (subclass of InterfasesEvent)
Throws:
InterfasesEventException

createEventForDETALLES_COMPLEJO

private InterfasesEvent createEventForDETALLES_COMPLEJO(javax.servlet.http.HttpServletRequest request)
                                                 throws InterfasesEventException
method for instantiating a ComplejosEvent demanding a service for action DETALLES_COMPLEJO

Parameters:
request - of MainServlet
Returns:
ComplejosEvent with the user request data (subclass of InterfasesEvent)
Throws:
InterfasesEventException

createEventForELIMINAR_COMPLEJO

private InterfasesEvent createEventForELIMINAR_COMPLEJO(javax.servlet.http.HttpServletRequest request)
                                                 throws InterfasesEventException
method for instantiating a ComplejosEvent demanding a service for action ELIMINAR_COMPLEJO

Parameters:
request - of MainServlet
Returns:
ComplejosEvent with the user request data (subclass of InterfasesEvent)
Throws:
InterfasesEventException

createEventForGUARDAR_COMPLEJO

private InterfasesEvent createEventForGUARDAR_COMPLEJO(javax.servlet.http.HttpServletRequest request)
                                                throws InterfasesEventException
method for instantiating a ComplejosEvent demanding a service for action GUARDAR_COMPLEJO

Parameters:
request - of MainServlet
Returns:
ComplejosEvent with the user request data (subclass of InterfasesEvent)
Throws:
InterfasesEventException

createEventForDETALLE_SALAS

private InterfasesEvent createEventForDETALLE_SALAS(javax.servlet.http.HttpServletRequest request)
                                             throws InterfasesEventException
method for instantiating a ComplejosEvent demanding a service for action DETALLE_SALAS

Parameters:
request - of MainServlet
Returns:
ComplejosEvent with the user request data (subclass of InterfasesEvent)
Throws:
InterfasesEventException

createEventForDETALLE_UBICACIONES

private InterfasesEvent createEventForDETALLE_UBICACIONES(javax.servlet.http.HttpServletRequest request)
                                                   throws InterfasesEventException
method for instantiating a ComplejosEvent demanding a service for action DETALLE_UBICACIONES

Parameters:
request - of MainServlet
Returns:
ComplejosEvent with the user request data (subclass of InterfasesEvent)
Throws:
InterfasesEventException

createEventForNUEVA_SALA

private InterfasesEvent createEventForNUEVA_SALA(javax.servlet.http.HttpServletRequest request)
                                          throws InterfasesEventException
method for instantiating a ComplejosEvent demanding a service for action NUEVA_SALA

Parameters:
request - of MainServlet
Returns:
ComplejosEvent with the user request data (subclass of InterfasesEvent)
Throws:
InterfasesEventException

createEventForACTUALIZAR_SALA

private InterfasesEvent createEventForACTUALIZAR_SALA(javax.servlet.http.HttpServletRequest request)
                                               throws InterfasesEventException
method for instantiating a ComplejosEvent demanding a service for action ACTUALIZAR_SALA

Parameters:
request - of MainServlet
Returns:
ComplejosEvent with the user request data (subclass of InterfasesEvent)
Throws:
InterfasesEventException

createEventForELIMINAR_SALA

private InterfasesEvent createEventForELIMINAR_SALA(javax.servlet.http.HttpServletRequest request)
                                             throws InterfasesEventException
method for instantiating a ComplejosEvent demanding a service for action ELIMINAR_SALA

Parameters:
request - of MainServlet
Returns:
ComplejosEvent with the user request data (subclass of InterfasesEvent)
Throws:
InterfasesEventException

createEventForBUSCAR_UBICACIONES

private InterfasesEvent createEventForBUSCAR_UBICACIONES(javax.servlet.http.HttpServletRequest request)
                                                  throws InterfasesEventException
method for instantiating a ComplejosEvent demanding a service for action BUSCAR_UBICACIONES

Parameters:
request - of MainServlet
Returns:
ComplejosEvent with the user request data (subclass of InterfasesEvent)
Throws:
InterfasesEventException

createEventForNUEVA_UBICACION

private InterfasesEvent createEventForNUEVA_UBICACION(javax.servlet.http.HttpServletRequest request)
                                               throws InterfasesEventException
method for instantiating a ComplejosEvent demanding a service for action NUEVA_UBICACION

Parameters:
request - of MainServlet
Returns:
ComplejosEvent with the user request data (subclass of InterfasesEvent)
Throws:
InterfasesEventException

createEventForACTUALIZAR_UBICACION

private InterfasesEvent createEventForACTUALIZAR_UBICACION(javax.servlet.http.HttpServletRequest request)
                                                    throws InterfasesEventException
method for instantiating a ComplejosEvent demanding a service for action ACTUALIZAR_UBICACION

Parameters:
request - of MainServlet
Returns:
ComplejosEvent with the user request data (subclass of InterfasesEvent)
Throws:
InterfasesEventException

createEventForELIMINAR_UBICACION

private InterfasesEvent createEventForELIMINAR_UBICACION(javax.servlet.http.HttpServletRequest request)
                                                  throws InterfasesEventException
method for instantiating a ComplejosEvent demanding a service for action ELIMINAR_UBICACION

Parameters:
request - of MainServlet
Returns:
ComplejosEvent with the user request data (subclass of InterfasesEvent)
Throws:
InterfasesEventException

createEventForVER_UBICACIONES

private InterfasesEvent createEventForVER_UBICACIONES(javax.servlet.http.HttpServletRequest request)
                                               throws InterfasesEventException
method for instantiating a ComplejosEvent demanding a service for action VER_UBICACIONES

Parameters:
request - of MainServlet
Returns:
ComplejosEvent with the user request data (subclass of InterfasesEvent)
Throws:
InterfasesEventException

createEventForVER_TIPOS_PRECIO

private InterfasesEvent createEventForVER_TIPOS_PRECIO(javax.servlet.http.HttpServletRequest request)
                                                throws InterfasesEventException
method for instantiating a ComplejosEvent demanding a service for action VER_TIPOS_PRECIO

Parameters:
request - of MainServlet
Returns:
ComplejosEvent with the user request data (subclass of InterfasesEvent)
Throws:
InterfasesEventException

createEventForREGRESAR_DE_AYUDA_UBICACIONES_COMPLEJO

private InterfasesEvent createEventForREGRESAR_DE_AYUDA_UBICACIONES_COMPLEJO(javax.servlet.http.HttpServletRequest request)
                                                                      throws InterfasesEventException
method for instantiating a ComplejosEvent demanding a service for action REGRESAR_DE_AYUDA_UBICACIONES_COMPLEJO

Parameters:
request - of MainServlet
Returns:
ComplejosEvent with the user request data (subclass of InterfasesEvent)
Throws:
InterfasesEventException

createEventForREGRESAR_DE_AYUDA_TIPOS_PRECIO_COMPLEJO

private InterfasesEvent createEventForREGRESAR_DE_AYUDA_TIPOS_PRECIO_COMPLEJO(javax.servlet.http.HttpServletRequest request)
                                                                       throws InterfasesEventException
method for instantiating a ComplejosEvent demanding a service for action REGRESAR_DE_AYUDA_TIPOS_PRECIO_COMPLEJO

Parameters:
request - of MainServlet
Returns:
ComplejosEvent with the user request data (subclass of InterfasesEvent)
Throws:
InterfasesEventException

createEventForREGRESAR_DE_INCONSISTENCIAS_COMPLEJO

private InterfasesEvent createEventForREGRESAR_DE_INCONSISTENCIAS_COMPLEJO(javax.servlet.http.HttpServletRequest request)
                                                                    throws InterfasesEventException
method for instantiating a ComplejosEvent demanding a service for action REGRESAR_DE_INCONSISTENCIAS_COMPLEJO

Parameters:
request - of MainServlet
Returns:
ComplejosEvent with the user request data (subclass of InterfasesEvent)
Throws:
InterfasesEventException

parseXMLComplejos

private java.util.List parseXMLComplejos(java.lang.String xmlComplejosItems)
                                  throws java.lang.Exception
auxiliary method for parsing a XML string containing items to update in complejos data

Parameters:
xmlComplejosItems - is the XML string
Returns:
a List with 3 elements of type String[] representing the attributes of items: code, name and status
Throws:
java.lang.Exception