Projet

Général

Profil

Télécharger (2,42 ko) Statistiques
| Branche: | Tag: | Révision:
2e0a7cb1 Sylvain L. Sauvage
<%@page import="com.sun.xacml.ctx.Result"%>
675e977d Rémy Ménard
<%@page import="fr.unicaen.iota.dphi.utils.PEPRequester"%>
2e0a7cb1 Sylvain L. Sauvage
<%
675e977d Rémy Ménard
String cert = (session.getAttribute("cert") != null)? (String) session.getAttribute("cert") : null;
if (cert == null) {
2e0a7cb1 Sylvain L. Sauvage
%>
<jsp:include page="Login.jsp" />
<%
return;
}
%>
675e977d Rémy Ménard
<%@page import="fr.unicaen.iota.dphi.xacml.ihm.Module"%>
<%@page import="fr.unicaen.iota.dphi.utils.HTMLUtilities"%>
2e0a7cb1 Sylvain L. Sauvage
<%@page import="java.util.Date"%>
675e977d Rémy Ménard
<%@page import="fr.unicaen.iota.dphi.auth.User"%>
2e0a7cb1 Sylvain L. Sauvage
<%@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">&nbsp;</div>
<jsp:include page="dialogs.jsp" />
<%
675e977d Rémy Ménard
User user = (User) session.getAttribute("user");
if (PEPRequester.checkAccess(user, "superadmin") != Result.DECISION_PERMIT) {
2e0a7cb1 Sylvain L. Sauvage
%>
<jsp:include page="policyList.jsp" />
<%
675e977d Rémy Ménard
}
else {
2e0a7cb1 Sylvain L. Sauvage
%>
<jsp:include page="rootMenu.jsp" />
<%
return;
}
675e977d Rémy Ménard
String userId = user.getUserID();
String ownerId = user.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>
8fd1d584 Rémy Ménard
<div class="logout"><a href="#" onclick="processUserDelete()" >[ Delete User ]</a></div>
<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>