NIHVIVO-736 transitioning from LoginFormBean to LoginStatusBean.
This commit is contained in:
parent
4dbf19c9c0
commit
02e32428bd
6 changed files with 30 additions and 106 deletions
|
@ -8,10 +8,9 @@
|
|||
<%@ page import="edu.cornell.mannlib.vitro.webapp.web.BreadCrumbsUtil" %>
|
||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.dao.WebappDaoFactory" %>
|
||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.controller.Controllers" %>
|
||||
<%@ page import="edu.cornell.mannlib.vedit.beans.LoginStatusBean" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||
|
||||
<jsp:useBean id="loginHandler" class="edu.cornell.mannlib.vedit.beans.LoginFormBean" scope="session" />
|
||||
|
||||
<%
|
||||
/***********************************************
|
||||
Make the Tab menu div, nothing else.
|
||||
|
@ -19,14 +18,9 @@
|
|||
bdc34 2006-01-03 created
|
||||
**********************************************/
|
||||
|
||||
HttpSession currentSession = request.getSession();
|
||||
String currentSessionIdStr = currentSession.getId();
|
||||
int securityLevel = -1;
|
||||
String loginName = null;
|
||||
if (loginHandler.testSessionLevel(request) > -1) {
|
||||
securityLevel = Integer.parseInt(loginHandler.getLoginRole());
|
||||
loginName = loginHandler.getLoginName();
|
||||
}
|
||||
LoginStatusBean loginBean = LoginStatusBean.getBean(request);
|
||||
boolean isLoggedIn = loginBean.isLoggedIn();
|
||||
String loginName = loginBean.getUsername();
|
||||
|
||||
final Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.web.menu.jsp");
|
||||
|
||||
|
@ -51,7 +45,7 @@
|
|||
<ul id="otherMenu">
|
||||
|
||||
<%-- A user is logged in --%>
|
||||
<% if (securityLevel > 0) { %>
|
||||
<% if (isLoggedIn) { %>
|
||||
|
||||
<c:url var="logoutHref" value="<%= Controllers.LOGOUT_JSP %>">
|
||||
<c:param name="home" value="${currentPortal}" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue