package it.acxent.pg.servlet; import it.acxent.common.Users; import it.acxent.servlet.AblServletSvlt; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public abstract class PgSvlt extends AblServletSvlt { protected String getPathStampeIva() { return getApFull(null).getResource("pathStampeIva"); } protected boolean checkLoginProfile(HttpServletRequest req) { try { if (getLoginUser(req) == null) { forceJspPage(getLoginPage(null, null), req); return true; } if (getLoginUser(req).getFlgValido().equals("N")) { forceJspPage(super.getLoginPage(null, null), req); req.getSession().removeAttribute("loginUser_id"); req.getSession().removeAttribute("utenteLogon"); return false; } if (getLoginUser(req).getId_userProfile() > 0L) return true; forceJspPage(super.getLoginPage(null, null), req); req.getSession().removeAttribute("loginUser_id"); req.getSession().removeAttribute("utenteLogon"); return true; } catch (Exception e) { handleDebug(e); return false; } } protected long getLoginUserGrant(HttpServletRequest req, String l_permesso) { try { return 4L; } catch (Exception e) { handleDebug(e); return 0L; } } protected String getAct3(HttpServletRequest req) { return getRequestParameter(req, "act3"); } protected String getCmd3(HttpServletRequest req) { return getRequestParameter(req, "cmd3"); } protected String getImgPath() { return getApFull(null).getResource("imgPath"); } protected String getLoginPage(HttpServletRequest req, HttpServletResponse res) { return "/admin/menu/menu.jsp"; } protected String getPathStampeFatture() { return getApFull(null).getResource("pathStampeFatture"); } protected String getPathStampeRicevute() { return getApFull(null).getResource("pathStampeRicevute"); } protected Users getUser() { return new it.acxent.pg.Users(getApFull()); } protected boolean useAlwaysSendRedirect() { return true; } protected boolean isSecureServlet(HttpServletRequest req) { return false; } }