|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ferri.portlet.client.action.ViewClientAction
public class ViewClientAction
Controlador de les pantalles de llistat.jsp i manteniment.jsp de la entitat Client
Field Summary | |
---|---|
private ClientService |
clientService
|
private GestoriaService |
gestoriaService
|
private static org.apache.commons.logging.Log |
log
|
private static String |
PAGE_LIST
|
private static String |
PAGE_MANT
|
Constructor Summary | |
---|---|
ViewClientAction()
|
Method Summary | |
---|---|
private void |
buscar(javax.portlet.PortletRequest request)
Cerca un llistat d'entitats Client que compleixin els criteris i ordenació passats per formulari request. |
private void |
defecte(javax.portlet.PortletRequest request)
Carrega el llistat amb tots els elements Client i l'afegeix a la request. |
private void |
editar(javax.portlet.PortletRequest request)
Carrega una entitat Client en request a partir del nif pasat també per request. |
private boolean |
elimina(javax.portlet.PortletRequest request)
Elimina una entitat Client amb la pk pasada en la request. |
ClientService |
getClientService()
|
GestoriaService |
getGestoriaService()
|
private Boolean |
guardar(javax.portlet.PortletRequest request)
Guarda una entitat Client, 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 |
setClientService(ClientService clientService)
|
void |
setGestoriaService(GestoriaService gestoriaService)
|
private void |
subElements(javax.portlet.PortletRequest request)
Carrega els llistats d'elements secundaris: TipusClient, Gestories i Administradors per cada gestoria i els afegeix a la request. |
private boolean |
validaCamps(ClientDTO dto,
javax.portlet.PortletRequest request)
Valida els camps del formulari de l'entitat Client 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 ClientService clientService
private GestoriaService gestoriaService
private static final String PAGE_MANT
private static final String PAGE_LIST
Constructor Detail |
---|
public ViewClientAction()
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 void subElements(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(ClientDTO dto, javax.portlet.PortletRequest request)
dto
- ClientDTOrequest
-
public ClientService getClientService()
public void setClientService(ClientService clientService)
clientService
- the clientService to setpublic 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 |