|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ferri.portlet.administrador.action.ViewAdministradorAction
public class ViewAdministradorAction
Controlador de les pantalles de llistat.jsp i manteniment.jsp de la entitat Administrador
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 | |
---|---|
ViewAdministradorAction()
|
Method Summary | |
---|---|
private void |
buscar(javax.portlet.PortletRequest request)
Cerca un llistat d'entitats Administrador que compleixin els criteris i ordenació passats per formulari request. |
private void |
defecte(javax.portlet.PortletRequest request)
Carrega el llistat amb tots els elements Administrador i l'afegeix a la request. |
private void |
editar(javax.portlet.PortletRequest request)
Carrega una entitat Administrador en request a partir del nif pasat també per request. |
private boolean |
elimina(javax.portlet.PortletRequest request)
Elimina una entitat Administrador amb la pk pasada en la request. |
GestoriaService |
getGestoriaService()
|
private Boolean |
guardar(javax.portlet.PortletRequest request)
Guarda una entitat Administrador, 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 void |
subElements(javax.portlet.PortletRequest request)
Carrega els llistats d'elements secundaris: Categories, i l'afegeix a la request. |
private boolean |
validaCamps(AdministradorDTO dto,
javax.portlet.PortletRequest request)
Valida els camps del formulari de l'entitat Administrador 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 ViewAdministradorAction()
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(AdministradorDTO dto, javax.portlet.PortletRequest request)
dto
- AdministradorDTOrequest
-
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 |