Révision bf9c3717
Ajouté par Remy Menard il y a environ 11 ans
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/servlet/AccessControlPolicy.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2011-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011-2013 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2011 Orange Labs
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
... | ... | |
import fr.unicaen.iota.epcisphi.xacml.ihm.*;
|
||
import fr.unicaen.iota.epcisphi.xacml.ihm.factory.AccessPolicies;
|
||
import fr.unicaen.iota.epcisphi.xacml.ihm.factory.Node;
|
||
import fr.unicaen.iota.eta.user.userservice.UserInfoOut;
|
||
import fr.unicaen.iota.xacml.policy.GroupPolicy;
|
||
import fr.unicaen.iota.ypsilon.client.model.UserInfoOut;
|
||
import java.io.IOException;
|
||
import java.io.PrintWriter;
|
||
import javax.servlet.ServletException;
|
||
... | ... | |
* new User(userInfo.getUid(), partner, "",
|
||
* userInfo.getUserId(), userInfo.getUserId(), new Date());
|
||
*/
|
||
User user = new User(userInfo.getUserID(), userInfo.getPartnerID());
|
||
User user = new User(userInfo.getUserID(), userInfo.getOwnerID());
|
||
Module module = (request.getParameter("d") != null)? Module.valueOf(request.getParameter("d")) : null;
|
||
String objectId = request.getParameter("b");
|
||
String groupId = request.getParameter("e");
|
||
... | ... | |
//TODO services.updatePartner(sessionId, user,user.getPartnerID(), partnerID, serviceID, serviceAddress, serviceType);
|
||
} else if ("createUser".equals(methodName)) {
|
||
String login = request.getParameter("f");
|
||
String pass = request.getParameter("g");
|
||
services.createUser(sessionId, user, login, pass);
|
||
String userName = request.getParameter("g");
|
||
services.createUser(sessionId, user, login, userName);
|
||
} else if ("updateUser".equals(methodName)) {
|
||
String login = request.getParameter("f");
|
||
String pass = request.getParameter("g");
|
||
//TODO services.updateUser(sessionId, user, login, pass);
|
||
} else if ("deleteUser".equals(methodName)) {
|
||
String login = request.getParameter("f");
|
||
services.deleteUser(sessionId, user, login);
|
||
} else if ("createAccount".equals(methodName)) {
|
||
String partnerId = request.getParameter("f");
|
||
String serviceId = request.getParameter("g");
|
||
String serviceType = request.getParameter("h");
|
||
String serviceAddress = request.getParameter("i");
|
||
String login = request.getParameter("j");
|
||
String pass = request.getParameter("k");
|
||
boolean rtr = services.createAccount(sessionId, user, partnerId, login, pass);
|
||
String userDN = request.getParameter("f");
|
||
String partnerId = request.getParameter("g");
|
||
String userName = request.getParameter("h");
|
||
boolean rtr = services.createAccount(sessionId, user, partnerId, userDN, userName);
|
||
if (rtr) {
|
||
html.append("Account successfull created.");
|
||
}
|
||
... | ... | |
services.updateGroupName(sessionId, user, module, objectId, groupId, newValue);
|
||
|
||
} // ************************** SAVE **********************************
|
||
else if ("savePartnerPolicy".equals(methodName)) {
|
||
else if ("saveOwnerPolicy".equals(methodName)) {
|
||
services.savePolicyPartner(sessionId, user, module);
|
||
|
||
} // ************************** CANCEL **********************************
|
Formats disponibles : Unified diff
Version 1.99
- a few bugs fixed!
- new testing application to capture events
- new options to the command line to configure the public/private keys
for TLS and for signature
- new method more accurate than "traceEPC": the events are sorted by
EPCIS
- New options added to the command line
- user can be identified by alias, if the DN of his certificate is
incompatible with the LDAP directory
- new shell script to configure the LDAP directory (same
functionnalities as IoTa-Installer)
- installs and configures LaMBDa
- finer certificate mangagement
- EpcILoN correctly subscribe with TLS to ETa
- new figure for LaMBDa
- shows data flows between PHI and YPSilon
- sets DS and DSeTa in different schemas