|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ferri.portlet.gestoria.action.ViewGestoriaAction
public class ViewGestoriaAction
Controlador de les pantalles de llistat.jsp i manteniment.jsp de la entitat Gestoria
Field Summary | |
---|---|
private GestoriaService |
gestoriaService
|
private static org.apache.commons.logging.Log |
log
|
private static String |
PAGE_LIST
|
private static String |
PAGE_MANT
|
Constructor Summary | |
---|---|
ViewGestoriaAction()
|
Method Summary | |
---|---|
private void |
buscar(javax.portlet.PortletRequest request)
Cerca un llistat d'entitats Gestoria que compleixin els criteris i ordenació passats per formulari request. |
private void |
defecte(javax.portlet.PortletRequest request)
Carrega el llistat amb tots els elements Gestoria i l'afegeix a la request. |
private void |
editar(javax.portlet.PortletRequest request)
Carrega una entitat Gestoria en request a partir del nif pasat també per request. |
private boolean |
elimina(javax.portlet.PortletRequest request)
Elimina una entitat Gestoria amb la pk pasada en la request. |
GestoriaService |
getGestoriaService()
|
private Boolean |
guardar(javax.portlet.PortletRequest request)
Guarda una entitat Gestoria, previa validació, amb tots els camps del forumlari pasats per request: pot crear-lo de nou si no existeix o actualitzar-lo si esxisteix. |
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 |
setGestoriaService(GestoriaService gestoriaService)
|
private boolean |
validaCamps(GestoriaDTO dto,
javax.portlet.PortletRequest request)
Valida els camps del formulari de l'entitat Gestoria abans de guardar-los. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.commons.logging.Log log
private GestoriaService gestoriaService
private static final String PAGE_MANT
private static final String PAGE_LIST
Constructor Detail |
---|
public ViewGestoriaAction()
Method Detail |
---|
public void handleActionRequest(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response) throws Exception
handleActionRequest
in interface org.springframework.web.portlet.mvc.Controller
Exception
public org.springframework.web.portlet.ModelAndView handleRenderRequest(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws Exception
handleRenderRequest
in interface org.springframework.web.portlet.mvc.Controller
Exception
private void defecte(javax.portlet.PortletRequest request) throws CommonServiceException
request
-
CommonServiceException
private boolean elimina(javax.portlet.PortletRequest request) throws Exception
request
-
Exception
private Boolean guardar(javax.portlet.PortletRequest request) throws Exception
request
-
Exception
private void editar(javax.portlet.PortletRequest request) throws Exception
request
-
Exception
private void buscar(javax.portlet.PortletRequest request) throws Exception
request
-
Exception
private boolean validaCamps(GestoriaDTO dto, javax.portlet.PortletRequest request)
dto
- GestoriaDTOrequest
-
public GestoriaService getGestoriaService()
public void setGestoriaService(GestoriaService gestoriaService)
gestoriaService
- the gestoriaService to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |