01: package com.sun.portal.subscriptions.profiler;
02:
03: import com.iplanet.am.sdk.AMUser;
04:
05: public class Notification {
06: public static final int END = -1;
07: public static final int MEDIUM_EMAIL = 0;
08: public static final int MEDIUM_IM = 1;
09: public static final int MEDIUM_DEFAULT = MEDIUM_EMAIL;
10:
11: // attributes
12: private AMUser user;
13: private Object content;
14: private String contentType; // text/html -
15: private int medium; // 0=EMail, ... other TBD (TODO)
16:
17: public Notification(AMUser u, Object c, String ct, int medium) {
18: this .user = u;
19: this .content = c;
20: }
21:
22: public AMUser getUser() {
23: return this .user;
24: }
25:
26: public void setUser(AMUser u) {
27: this .user = u;
28: }
29:
30: public Object getContent() {
31: return this .content;
32: }
33:
34: public void setContent(Object content) {
35: this .content = content;
36: }
37:
38: public String getContentType() {
39: return this .contentType;
40: }
41:
42: public void setContentType(String contentType) {
43: this .contentType = contentType;
44: }
45:
46: public int getMedium() {
47: return this .medium;
48: }
49:
50: public void setMedium() {
51: this.medium = medium;
52: }
53: }
|