com.ferri.portlet.intervencio.action
Class ViewIntervencioAction

java.lang.Object
  extended by com.ferri.portlet.intervencio.action.ViewIntervencioAction
All Implemented Interfaces:
org.springframework.web.portlet.mvc.Controller

public class ViewIntervencioAction
extends Object
implements org.springframework.web.portlet.mvc.Controller

Controlador de les pantalles de llistat.jsp de la entitat Intervencio

Author:
dferri

Field Summary
private  ContracteService contracteService
           
private  FacturaService facturaService
           
private static org.apache.commons.logging.Log log
           
private static String PAGE_LIST
           
 
Constructor Summary
ViewIntervencioAction()
           
 
Method Summary
private  void buscar(javax.portlet.PortletRequest request)
          Cerca un llistat d'entitats Intervencio que compleixin els criteris i ordenació passats per formulari request.
private  void defecte(javax.portlet.PortletRequest request)
          Carrega el llistat amb tots els elements Intervencio i l'afegeix a la request.
 ContracteService getContracteService()
           
 FacturaService getFacturaService()
           
private  Boolean guardar(javax.portlet.PortletRequest request)
          Actualitza una entitat Intervencio a estat Realitzada.
 void handleActionRequest(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response)
           
 org.springframework.web.portlet.ModelAndView handleRenderRequest(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
 void setContracteService(ContracteService contracteService)
           
 void setFacturaService(FacturaService facturaService)
           
private  void subElements(javax.portlet.PortletRequest request)
          Carrega els llistats d'elements secundaris: Estat, i l'afegeix a la request.
private  boolean validaBusqueda(IntervencioDTO dto, javax.portlet.PortletRequest request)
          Valida els camps del formulari de cerca en format mes/any o import per entitats Intervencio.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log

contracteService

private ContracteService contracteService

facturaService

private FacturaService facturaService

PAGE_LIST

private static final String PAGE_LIST
See Also:
Constant Field Values
Constructor Detail

ViewIntervencioAction

public ViewIntervencioAction()
Method Detail

handleActionRequest

public void handleActionRequest(javax.portlet.ActionRequest request,
                                javax.portlet.ActionResponse response)
                         throws Exception
Specified by:
handleActionRequest in interface org.springframework.web.portlet.mvc.Controller
Throws:
Exception

handleRenderRequest

public org.springframework.web.portlet.ModelAndView handleRenderRequest(javax.portlet.RenderRequest request,
                                                                        javax.portlet.RenderResponse response)
                                                                 throws Exception
Specified by:
handleRenderRequest in interface org.springframework.web.portlet.mvc.Controller
Throws:
Exception

defecte

private void defecte(javax.portlet.PortletRequest request)
              throws CommonServiceException
Carrega el llistat amb tots els elements Intervencio i l'afegeix a la request.

Parameters:
request -
Throws:
CommonServiceException

subElements

private void subElements(javax.portlet.PortletRequest request)
                  throws CommonServiceException
Carrega els llistats d'elements secundaris: Estat, i l'afegeix a la request.

Parameters:
request -
Throws:
CommonServiceException

guardar

private Boolean guardar(javax.portlet.PortletRequest request)
                 throws Exception
Actualitza una entitat Intervencio a estat Realitzada.

Parameters:
request -
Returns:
boolean resultat
Throws:
Exception

buscar

private void buscar(javax.portlet.PortletRequest request)
             throws Exception
Cerca un llistat d'entitats Intervencio que compleixin els criteris i ordenació passats per formulari request. El llistat resultant es passat per request.

Parameters:
request -
Throws:
Exception

validaBusqueda

private boolean validaBusqueda(IntervencioDTO dto,
                               javax.portlet.PortletRequest request)
Valida els camps del formulari de cerca en format mes/any o import per entitats Intervencio.

Parameters:
dto - IntervencioDTO
request -
Returns:
boolean resultat

getContracteService

public ContracteService getContracteService()
Returns:
the contracteService

setContracteService

public void setContracteService(ContracteService contracteService)
Parameters:
contracteService - the contracteService to set

getFacturaService

public FacturaService getFacturaService()
Returns:
the facturaService

setFacturaService

public void setFacturaService(FacturaService facturaService)
Parameters:
facturaService - the facturaService to set