source: ether_eccad/trunk/ECCAD_INTERFACE/WEB-INF/src/org/medias/eccad/presentation/bean/GrapheBean.java @ 68

Last change on this file since 68 was 68, checked in by cbipsl, 14 years ago

commit v1 eccad

  • Property svn:executable set to *
File size: 832 bytes
Line 
1package org.medias.eccad.presentation.bean;
2
3import javax.faces.context.FacesContext;
4import javax.servlet.http.HttpSession;
5
6import org.medias.eccad.metier.statistique.ServiceGraphe;
7
8public class GrapheBean extends AbstractVueBean{
9       
10        public GrapheBean() {
11                controleSession();
12                //CritereBean critereBean = (CritereBean)((HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(false)).getAttribute("critereBean");
13                ServiceGraphe service = new ServiceGraphe();
14                service.genereGraphe(getIdUnique(), null);
15        }
16       
17        private String getIdUnique() {
18                HttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);
19                if (session==null)
20                        return "";
21               
22                String imageID;
23               
24               
25                imageID = session.getId() + session.getLastAccessedTime() ;
26               
27                return imageID;
28        }
29
30}
Note: See TracBrowser for help on using the repository browser.