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 | |
---|
1 | package org.medias.eccad.presentation.bean; |
---|
2 | |
---|
3 | import javax.faces.context.FacesContext; |
---|
4 | import javax.servlet.http.HttpSession; |
---|
5 | |
---|
6 | import org.medias.eccad.metier.statistique.ServiceGraphe; |
---|
7 | |
---|
8 | public 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.