01: /**
02: *
03: */package clime.messadmin.clickstream;
04:
05: import java.util.LinkedList;
06:
07: import clime.messadmin.model.Session;
08: import clime.messadmin.providers.lifecycle.ClickStreamGatherer;
09:
10: /**
11: * @author Cédrik LIME
12: */
13: public class Utils {
14: private static final String USER_DATA_KEY = ClickStreamGatherer.class
15: .getName();
16:
17: private Utils() {
18: }
19:
20: public static LinkedList getPluginData(Session session) {
21: LinkedList result = (LinkedList) session.getUserData().get(
22: USER_DATA_KEY);
23: if (result == null) {
24: result = new LinkedList();
25: session.getUserData().put(USER_DATA_KEY, result);
26: }
27: return result;
28: }
29: }
|