1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
public class ListModules
{
...
public ListModules()
{
}
public ArrayList<Module> getListMod() {
HttpSession session=SessionUtil.getSession();
MuleServices u = (MuleServices)session.getAttribute("u");
ArrayList<Module> listM=new ArrayList<Module>();
ArrayList<MonService> listeservices;
listeservices = u.getServicesLibelles();
Module m;
for(int i=0;i<listeservices.size();i++)
{
m=(Module)(session.getAttribute(listeservices.get(i).getLibelle()));
listM.add(m);
System.out.println("GETmodule "+i+" = "+m.getNom());
System.out.println("GET valeurs=="+m.getEventsReceived().values().toString());
}
return listM;
}
public void setListMod(ArrayList<Module> listMod) {
this.listMod = listMod;
}
...
public String mesServicesAttributs() {
for(int k=0;k<listeservices.size();k++)
{
Module m;
m=(Module)(session.getAttribute(n));
String n=new ObjectName(serviceObjectName).getKeyProperty("name");
LinkedHashMap<String, Object> h=m.getEventsReceived();
h.put(String.valueOf(i),valAtt);
//m.setEventsReceived(h);
session.setAttribute(n,m);
System.out.println("nomModule=="+m.getNom());
System.out.println("valeurs=="+m.getEventsReceived().values().toString());
}
return "statistiques";
} |
Partager