com.cinecolombia.cinecolombia.control.web.handlers
Class PermisosEspecialesRequestHandler

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

public class PermisosEspecialesRequestHandler
extends RequestHandlerSupport

permisosEspeciales usecase: handler of user requests in the Application layer

Author:
CincoSOFT
Created:
Junio 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
PermisosEspecialesRequestHandler()
           
 
Method Summary
private  CinecolombiaEvent createEventForGET_PERMISOS_ESPECIALES(javax.servlet.http.HttpServletRequest request)
          method for instantiating a PermisosEspecialesEvent demanding a service for action GET_PERMISOS_ESPECIALES
private  CinecolombiaEvent createEventForLIST(javax.servlet.http.HttpServletRequest request)
          method for instantiating a PermisosEspecialesEvent demanding a service for action LIST
private  CinecolombiaEvent createEventForUPDATE_PERMISOS_ESPECIALES(javax.servlet.http.HttpServletRequest request)
          method for instantiating a PermisosEspecialesEvent demanding a service for action UPDATE_PERMISOS_ESPECIALES
 java.sql.Date fechaDesde(java.lang.String fechaDesde)
          auxiliar method for calculate a fechaDesde as java.sql.Date for action UPDATE_PERMISOS_ESPECIALES
 java.sql.Date fechaHasta(java.lang.String fechaHasta)
          auxiliar method for calculate a fechaHasta as java.sql.Date for action UPDATE_PERMISOS_ESPECIALES
 CinecolombiaEvent processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext context)
          principal method that process a user request instantiating a PermisosEspecialesEvent with the user request data
 
Methods inherited from class com.cinecolombia.cinecolombia.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

PermisosEspecialesRequestHandler

public PermisosEspecialesRequestHandler()
Method Detail

processRequest

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

Parameters:
request - of MainServlet
context - of MainServlet
Returns:
PermisosEspecialesEvent with the user request data (subclass of CinecolombiaEvent)
Throws:
CinecolombiaEventException

createEventForLIST

private CinecolombiaEvent createEventForLIST(javax.servlet.http.HttpServletRequest request)
                                      throws CinecolombiaEventException
method for instantiating a PermisosEspecialesEvent demanding a service for action LIST

Parameters:
request - of MainServlet
Returns:
PermisosEspecialesEvent with the user request data (subclass of CinecolombiaEvent)
Throws:
CinecolombiaEventException

createEventForGET_PERMISOS_ESPECIALES

private CinecolombiaEvent createEventForGET_PERMISOS_ESPECIALES(javax.servlet.http.HttpServletRequest request)
                                                         throws CinecolombiaEventException
method for instantiating a PermisosEspecialesEvent demanding a service for action GET_PERMISOS_ESPECIALES

Parameters:
request - of MainServlet
Returns:
PermisosEspecialesEvent with the user request data (subclass of CinecolombiaEvent)
Throws:
CinecolombiaEventException

createEventForUPDATE_PERMISOS_ESPECIALES

private CinecolombiaEvent createEventForUPDATE_PERMISOS_ESPECIALES(javax.servlet.http.HttpServletRequest request)
                                                            throws CinecolombiaEventException
method for instantiating a PermisosEspecialesEvent demanding a service for action UPDATE_PERMISOS_ESPECIALES

Parameters:
request - of MainServlet
Returns:
PermisosEspecialesEvent with the user request data (subclass of CinecolombiaEvent)
Throws:
CinecolombiaEventException

fechaDesde

public java.sql.Date fechaDesde(java.lang.String fechaDesde)
                         throws java.lang.Exception
auxiliar method for calculate a fechaDesde as java.sql.Date for action UPDATE_PERMISOS_ESPECIALES

Parameters:
fechaDesde -
Returns:
java.sql.Date
Throws:
java.lang.Exception - Description of the Exception

fechaHasta

public java.sql.Date fechaHasta(java.lang.String fechaHasta)
                         throws java.lang.Exception
auxiliar method for calculate a fechaHasta as java.sql.Date for action UPDATE_PERMISOS_ESPECIALES

Parameters:
fechaHasta -
Returns:
java.sql.Date
Throws:
java.lang.Exception - Description of the Exception