Classe BasicFrmAction

(Actualitzat 30/04/2020, 16:14:38)

Extends: extends FreeMarkerAction

Implements:

Package: eres.actions

Informació general

Atenció:
Caldria revisar el mètode sendMail. Degut a les diferents polítiques al llarg dels anys respecte a l'enviament de correus per part de la UAB, he hagut de modificar el sistema repetides vegades i per tant les funcions o mètodes per ajustar-me a cada cas. Per previsió he anat guardant les versions anteriors i això ha pogut portar a un petit caos respecte a aquesta funcionalitat.

Revisat: 24/04/2020 08:54:46
   ajaxServiceClosed
   BasicFrmAction
   checkClau
   checkRight
   checkRights
   checkRightsAsAjax
   checkRightsAsAjax
   chkNoSession
   exceptionError
   fetchDirGrupos
   getAction
   getBundle
   getRutaCursos
   getRutaVbles
   getUrlBack
   isNoSession
   isServiceClosed
   isSessionAlive
   isSessionDead
   main
   noAction
   NoSession
   notImplemented
   notProuRights
   notServiceClosed
   nulses
   okAndGo
   pickTemplate
   serviceClosed
   servOff
   sesionCaducadaError
   sesionRefrescaError
   setBundle
   start
   toLogin
        
eres.actions.BasicFrmAction
Informa por ajax de servicio cerrado

@return 
@throws 
protected Result ajaxServiceClosed() {}  
eres.actions.BasicFrmAction
@param HttpTransit
@return 
@throws 
public BasicFrmAction(HttpTransit ht) {}  
eres.actions.BasicFrmAction
@param String
@return 
@throws 
protected boolean checkClau(String psw) {}  
eres.actions.BasicFrmAction
Engloba y centraliza la gestión de derechos
@param String
@return 
@throws 
public Result checkRight(String r) {}  
eres.actions.BasicFrmAction
Controla los privilegios extras. Primero los comprueba como normales y
 después como extras. Tendría que revisarlo.
@param String
@param String
@param long
@return 
@throws 
public Result checkRights(String r, String xtr, long id) {}  
eres.actions.BasicFrmAction
Comprueba los privilegios normales y extras y los gestiona por Ajax
@param String
@param String
@param long
@return 
@throws 
public Result checkRightsAsAjax(String r, String xtr, long id) {}  
eres.actions.BasicFrmAction
Comprueba los privilegios normales y los gestiona por Ajax
@param String
@return 
@throws 
public Result checkRightsAsAjax(String r) {}  
eres.actions.BasicFrmAction
@param boolean
@return 
@throws 
protected NoSession chkNoSession(boolean ajax) {}  
eres.actions.BasicFrmAction
@param String
@return 
@throws 
public Result exceptionError(String action) {}  
eres.actions.BasicFrmAction
Devuelve el directorio para los grupos

@return 
@throws 
protected String fetchDirGrupos() {}  
eres.actions.BasicFrmAction

@return 
@throws 
protected Result getAction() {}  
eres.actions.BasicFrmAction

@return 
@throws 
public ResourceBundle getBundle() {}  
eres.actions.BasicFrmAction

@return 
@throws 
public String getRutaCursos() {}  
eres.actions.BasicFrmAction

@return 
@throws 
public String getRutaVbles() {}  
eres.actions.BasicFrmAction

@return 
@throws 
public String getUrlBack() {}  
eres.actions.BasicFrmAction
Método de la Inner Class NoSession

@return 
@throws 
protected boolean isNoSession() {}  
eres.actions.BasicFrmAction

@return 
@throws 
protected boolean isServiceClosed() {}  
eres.actions.BasicFrmAction

@return 
@throws 
public boolean isSessionAlive() {}  
eres.actions.BasicFrmAction
Determina si la sesión ha expirado

@return 
@throws 
public boolean isSessionDead() {}  
eres.actions.BasicFrmAction
Devuelve la ruta a la plana principal

@return 
@throws 
public Result main() {}  
eres.actions.BasicFrmAction
@param String
@return 
@throws 
public Result noAction(String action) {}  
eres.actions.BasicFrmAction
Clase que gestion la ausencia de sesión
@param boolean
@return 
@throws 
private NoSession(boolean ajax) {}  
eres.actions.BasicFrmAction
Envía un mail
@param String
@return 
@throws 
protected Result notImplemented(String msg) {}  
eres.actions.BasicFrmAction

@return 
@throws 
protected Result notProuRights() {}  
eres.actions.BasicFrmAction
@param boolean
@return 
@throws 
protected Result notServiceClosed(boolean ajax) {}  
eres.actions.BasicFrmAction
Me permite anular una sesión para realiizar pruebas.

@return 
@throws 
public Result nulses() {}  
eres.actions.BasicFrmAction
Método que muestra un mensaje en Ok.ftl con link al index
@param String
@return 
@throws 
protected Result okAndGo(String foo) {}  
eres.actions.BasicFrmAction
Método genérico para abrir un template de Freemarker y asociarle por defecto
 toda una serie de variables genéricas de uso habitual.
@param String
@return 
@throws IOException
protected Template pickTemplate(String tmpName) throws IOException {}  
eres.actions.BasicFrmAction
@param boolean
@return 
@throws 
protected Result serviceClosed(boolean ajax) {}  
eres.actions.BasicFrmAction
Remite al usuario a la página de servicio cerrado.

@return 
@throws 
public Result servOff() {}  
eres.actions.BasicFrmAction
Reenvía a la página de sesión caducada.

@return 
@throws 
protected Result sesionCaducadaError() {}  
eres.actions.BasicFrmAction
Informa del refresco de página. Error

@return 
@throws 
protected Result sesionRefrescaError() {}  
eres.actions.BasicFrmAction
@param ResourceBundle
@return 
@throws 
public void setBundle(ResourceBundle bundle) {}  
eres.actions.BasicFrmAction
Muestra la página general de servicios. Uso interno.

@return 
@throws 
public Result start() {}  
eres.actions.BasicFrmAction
Alternativa a toAjaxLogin. Incluye parámetro que bifurca a Ajax o a
 url estándar.
@param boolean
@return 
@throws 
public Result toLogin(boolean ajax) {}