root/ETa/EpcisPHI/src/main/webapp/index.jsp @ 8fd1d584
2e0a7cb1 | Sylvain L. Sauvage | <%@page import="fr.unicaen.iota.epcisphi.utils.SessionLoader"%>
|
|
<%@page import="com.sun.xacml.ctx.Result"%>
|
|||
<%@page import="fr.unicaen.iota.epcisphi.utils.PEPRequester"%>
|
|||
bf9c3717 | Rémy Ménard | <%@page import="fr.unicaen.iota.ypsilon.client.model.UserInfoOut"%>
|
|
2e0a7cb1 | Sylvain L. Sauvage | <%
|
|
String sessionId = (String) session.getAttribute("session-id");
|
|||
String sid = (String) request.getParameter("sid");
|
|||
String uid = (String) request.getParameter("uid");
|
|||
if (sid != null) {
|
|||
String message = SessionLoader.loadSession(sid, uid, session);
|
|||
if (!message.equals("")) {
|
|||
request.setAttribute("message", message);
|
|||
%>
|
|||
<jsp:include page="Login.jsp" />
|
|||
<%
|
|||
return;
|
|||
}
|
|||
} else if (sessionId == null) {
|
|||
%>
|
|||
<jsp:include page="Login.jsp" />
|
|||
<%
|
|||
return;
|
|||
}
|
|||
%>
|
|||
<%@page import="fr.unicaen.iota.epcisphi.xacml.ihm.Module"%>
|
|||
<%@page import="fr.unicaen.iota.epcisphi.utils.HTMLUtilities"%>
|
|||
<%@page import="java.util.Date"%>
|
|||
<%@page import="fr.unicaen.iota.epcisphi.utils.User"%>
|
|||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
|||
"http://www.w3.org/TR/html4/loose.dtd">
|
|||
<html>
|
|||
<head>
|
|||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|||
<title>Policy Manager</title>
|
|||
<script type="text/javascript" src="script/tree.js"></script>
|
|||
<script type="text/javascript" src="script/requestDispatcher.js"></script>
|
|||
8fd1d584 | Rémy Ménard | <script type="text/javascript" src="script/jquery-min.js"></script>
|
|
bf9c3717 | Rémy Ménard | <script type="text/javascript" src="script/jquery-ui.min.js"></script>
|
|
<link rel="stylesheet" type="text/css" href="style/jquery-ui.css" />
|
|||
2e0a7cb1 | Sylvain L. Sauvage | <link rel="stylesheet" type="text/css" href="style/style.css" />
|
|
</head>
|
|||
<body>
|
|||
<div class="treeTitle"> </div>
|
|||
<jsp:include page="dialogs.jsp" />
|
|||
<%
|
|||
UserInfoOut uInfo = (UserInfoOut) session.getAttribute("uInfo");
|
|||
bf9c3717 | Rémy Ménard | User u = new User(uInfo.getUserID(), uInfo.getOwnerID());
|
|
2e0a7cb1 | Sylvain L. Sauvage | if (PEPRequester.checkAccess(u, "superadmin") != Result.DECISION_PERMIT) {
|
|
%>
|
|||
<jsp:include page="policyList.jsp" />
|
|||
<% } else {
|
|||
%>
|
|||
<jsp:include page="rootMenu.jsp" />
|
|||
<%
|
|||
return;
|
|||
}
|
|||
String userId = ((UserInfoOut) session.getAttribute("uInfo")).getUserID();
|
|||
8fd1d584 | Rémy Ménard | String ownerId = ((UserInfoOut) session.getAttribute("uInfo")).getOwnerID();
|
|
2e0a7cb1 | Sylvain L. Sauvage | ||
%>
|
|||
<div class="account">
|
|||
<div class="logout"><a href="RootAccountAuth?action=logout">[ logout ]</a></div>
|
|||
8fd1d584 | Rémy Ménard | <div class="logout"><a href="#" onclick="processOwnerUpdate()" >[ Update My Account ]</a></div>
|
|
2e0a7cb1 | Sylvain L. Sauvage | <div class="logout"><a href="#" onclick="processUserCreate()" >[ Create User ]</a></div>
|
|
<div class="logout"><a href="#" onclick="processUserDelete()" >[ Delete User ]</a></div>
|
|||
8fd1d584 | Rémy Ménard | <div style="width : 300px;"><span>*</span> User : <span class="accountDetails"><%=userId%></span> / Owner profile : <span class="accountDetails"><%=ownerId%></span></div>
|
|
2e0a7cb1 | Sylvain L. Sauvage | </div>
|
|
</body>
|
|||
</html>
|