01: /**
02: *
03: */package clime.messadmin.core;
04:
05: /**
06: * Should be a Java 5 Enum...
07: * @author Cédrik LIME
08: */
09: public interface Constants {
10: /**
11: * Key for a session message
12: */
13: public static final String SESSION_MESSAGE_KEY = "clime.messadmin.message";//$NON-NLS-1$
14: /**
15: * Key for a global (application-scope) message
16: */
17: public static final String GLOBAL_MESSAGE_KEY = "clime.messadmin.message.global";//$NON-NLS-1$
18: /**
19: * Key for last application-level message display timestamp
20: */
21: public static final String GLOBAL_MESSAGE_TIMESTAMP_KEY = "clime.messadmin.message.global.timestamp";//$NON-NLS-1$
22: /**
23: * Minimum time in milliseconds between application-level message display: {@value}
24: */
25: public static final long GLOBAL_MESSAGE_DELTA_TIME_MIN = 60 * 1000;//TODO externalize in .properties
26:
27: /* HttpServletRequest parameter constants */
28:
29: public static final String APPLICATION_MESSAGE = "message";//$NON-NLS-1$
30: public static final String APPLICATION_ERROR = "error";//$NON-NLS-1$
31:
32: }
|