String path = UrlBindingFactory.getInstance().getBindingPrototype(
actionBean.getClass()).getPath();
if (path.contains("validareConturi") || path.contains("stergereConturiGeologi") || path.contains("Admin.action?datePersonale")) {
HttpSession session = execContext.getActionBeanContext().getRequest().getSession(false);
if (session == null || session.getAttribute("admin") == null || session.getAttribute("admin").equals(0)) {
resolution = new ForwardResolution("/WEB-INF/jsp/home.jsp");
}
} else if (path.contains("/Amplasament") || path.contains("/Beneficiar") || path.contains("/Compresibilitate") || path.contains("/Compresiune") || path.contains("/DensitateaPamanturilor") || path.contains("/Foraj") || path.contains("/MetodaCernerii") || path.contains("/MetodaSedimentarii") || path.contains("/Proba") || path.contains("/Rezultate") || path.contains("/Stanta") || path.contains("/Strat") || path.contains("/VizualizareForaj") || path.contains("/W") || path.contains("/WL") || path.contains("/WP") || path.contains("datePersonale") || path.contains("proiecteGeologSef")) {
HttpSession session = execContext.getActionBeanContext().getRequest().getSession(false);
if (session == null || session.getAttribute("user") == null || session.getAttribute("user").equals(0) || session.getAttribute("user").equals(-1)) {
resolution = new ForwardResolution("/WEB-INF/jsp/home.jsp");
}
}
return resolution;
}