Révision bf9c3717
Ajouté par Remy Menard il y a environ 11 ans
ETa/EpcisPHI/src/main/webapp/script/requestDispatcher.js | ||
---|---|---|
}
|
||
}
|
||
});
|
||
|
||
|
||
break;
|
||
case "epcFilterGroupNode":
|
||
$("#questionDialogMsg").html("Do you want to switch the EPC policy Filter ?");
|
||
... | ... | |
}
|
||
}
|
||
});
|
||
|
||
|
||
break;
|
||
case "eventTimeFilterGroupNode":
|
||
$("#questionDialogMsg").html("Do you want to switch the Event Time policy Filter ?");
|
||
... | ... | |
return 0;
|
||
}
|
||
}
|
||
});
|
||
});
|
||
break;
|
||
case "recordTimeFilterGroupNode":
|
||
$("#questionDialogMsg").html("Do you want to switch the Record Time policy Filter ?");
|
||
... | ... | |
buttons: {
|
||
"Validate" : function process(){
|
||
$(this).dialog("close");
|
||
validatePartnerPolicy(module);
|
||
validateOwnerPolicy(module);
|
||
} ,
|
||
"Cancel": function() {
|
||
$(this).dialog("close");
|
||
... | ... | |
"Validate" : function processDate(){
|
||
$(this).dialog("close");
|
||
var login = $("#userLogin").attr("value");
|
||
var password = $("#userPassword").attr("value");
|
||
createUser(login,password);
|
||
var userName = $("#userID").attr("value");
|
||
createUser(login,userName);
|
||
} ,
|
||
"Cancel": function() {
|
||
$(this).dialog("close");
|
||
... | ... | |
"Validate" : function processDate(){
|
||
$(this).dialog("close");
|
||
var login = $("#userLogin2").attr("value");
|
||
var password = $("#userPassword2").attr("value");
|
||
updateUser(login,password);
|
||
updateUser(login);
|
||
} ,
|
||
"Cancel": function() {
|
||
$(this).dialog("close");
|
||
... | ... | |
"Validate" : function processAccountCreate(){
|
||
$(this).dialog("close");
|
||
var login = $("#userLogin1").attr("value");
|
||
var password = $("#userPassword1").attr("value");
|
||
var partnerID = $("#partnerID1").attr("value");
|
||
var serviceID = $("#serviceID1").attr("value");
|
||
var serviceAddress = $("#serviceAddress1").attr("value");
|
||
var serviceType = $("#serviceType1").attr("value");
|
||
createAccount(partnerID,serviceID,serviceType,serviceAddress,login,password);
|
||
var userID = $("#userID1").attr("value");
|
||
createAccount(partnerID,login,userID);
|
||
} ,
|
||
"Cancel": function() {
|
||
$(this).dialog("close");
|
||
... | ... | |
});
|
||
}
|
||
|
||
function createUser(login,password){
|
||
function createUser(login,userName){
|
||
$.get('AccessControlPolicy', {
|
||
a:"createUser",
|
||
f:login,
|
||
g:password
|
||
g:userName
|
||
},
|
||
function(data){
|
||
if (isRequestSuccessfull(data)) { //si la requête s'est bien déroulée
|
||
... | ... | |
}
|
||
|
||
|
||
function updateUser(login,password){
|
||
function updateUser(login){
|
||
$.get('AccessControlPolicy', {
|
||
a:"updateUser",
|
||
f:login,
|
||
g:password
|
||
f:login
|
||
},
|
||
function(data){
|
||
if (isRequestSuccessfull(data)) { //si la requête s'est bien déroulée
|
||
... | ... | |
});
|
||
}
|
||
|
||
function createAccount(partnerID,serviceID,serviceType,serviceAddress,login,password){
|
||
function createAccount(partnerID,login,userName){
|
||
$.get('AccessControlPolicy', {
|
||
a:"createAccount",
|
||
f:partnerID,
|
||
g:serviceID,
|
||
h:serviceType,
|
||
i:serviceAddress,
|
||
j:login,
|
||
k:password
|
||
f:login,
|
||
g:partnerID,
|
||
h:userName
|
||
},
|
||
function(data){
|
||
if (isRequestSuccessfull(data)) { //si la requête s'est bien déroulée
|
||
... | ... | |
}
|
||
else{ // sinon
|
||
errorDialog(getRepsonseDescription(data));
|
||
}
|
||
}
|
||
});
|
||
}
|
||
function removePartnerFromGroup(groupId,objectId,blockNode,module){
|
||
... | ... | |
});
|
||
}
|
||
|
||
function validatePartnerPolicy(module){
|
||
function validateOwnerPolicy(module){
|
||
$.get('AccessControlPolicy', {
|
||
a:"savePartnerPolicy",
|
||
a:"saveOwnerPolicy",
|
||
e:null,
|
||
d:module,
|
||
b:null
|
||
... | ... | |
else{ // sinon
|
||
errorDialog(getRepsonseDescription(data));
|
||
}
|
||
});
|
||
});
|
||
}
|
||
|
||
function processRequestCancelPolicyChanges(module){
|
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