|
|
|
@ -13,6 +13,9 @@ import analiseacidentestrabalho.SessionBean1;
|
|
|
|
import beans.Utilizador;
|
|
|
|
import beans.Utilizador;
|
|
|
|
import com.evolute.utils.error.ErrorLogger;
|
|
|
|
import com.evolute.utils.error.ErrorLogger;
|
|
|
|
import global.Global;
|
|
|
|
import global.Global;
|
|
|
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
|
|
import java.util.Locale;
|
|
|
|
import javax.faces.component.UIViewRoot;
|
|
|
|
import javax.faces.component.UIViewRoot;
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
import utils.JSFUtils;
|
|
|
|
import utils.JSFUtils;
|
|
|
|
@ -24,6 +27,7 @@ import utils.Logos;
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public class AATMainPhaseListener implements PhaseListener
|
|
|
|
public class AATMainPhaseListener implements PhaseListener
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
private static final SimpleDateFormat DT_F = new SimpleDateFormat( "yyyy-MM-dd - HH:mm:ss.S", new Locale( "pt", "PT" ) );
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void afterPhase(PhaseEvent pe)
|
|
|
|
public void afterPhase(PhaseEvent pe)
|
|
|
|
@ -36,6 +40,7 @@ public class AATMainPhaseListener implements PhaseListener
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if ( pe.getPhaseId() == PhaseId.RENDER_RESPONSE )
|
|
|
|
if ( pe.getPhaseId() == PhaseId.RENDER_RESPONSE )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
System.out.println( DT_F.format( new Date() ) );
|
|
|
|
FacesContext fc = pe.getFacesContext();
|
|
|
|
FacesContext fc = pe.getFacesContext();
|
|
|
|
SessionBean1 session = JSFUtils.getSessionBean( fc );
|
|
|
|
SessionBean1 session = JSFUtils.getSessionBean( fc );
|
|
|
|
|
|
|
|
|
|
|
|
|