KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jmanage > core > data > AlertData


1 /**
2 * Copyright (c) 2004-2005 jManage.org
3 *
4 * This is a free software; you can redistribute it and/or
5 * modify it under the terms of the license at
6 * http://www.jmanage.org.
7 *
8 * Unless required by applicable law or agreed to in writing, software
9 * distributed under the License is distributed on an "AS IS" BASIS,
10 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 * See the License for the specific language governing permissions and
12 * limitations under the License.
13 */

14 package org.jmanage.core.data;
15
16 import java.text.SimpleDateFormat JavaDoc;
17
18 /**
19  *
20  * Date: Aug 2, 2005
21  * @author Rakesh Kalra
22  */

23 public class AlertData implements java.io.Serializable JavaDoc {
24
25     private static final SimpleDateFormat JavaDoc formatter =
26             new SimpleDateFormat JavaDoc("yyyy, MMM dd HH:mm:ss");
27
28     // unique id for the alert
29
private String JavaDoc alertId = null;
30     private String JavaDoc type = null;
31     private long sequenceNumber = 0;
32     private String JavaDoc message = null;
33     private long timeStamp;
34     private Object JavaDoc userData = null;
35     private Object JavaDoc source = null;
36
37     private String JavaDoc alertConfigId;
38     private String JavaDoc alertName;
39     private String JavaDoc subject;
40     private String JavaDoc emailAddress;
41
42     private String JavaDoc appId;
43     private String JavaDoc appName;
44
45     public String JavaDoc getAlertId() {
46         return alertId;
47     }
48
49     public void setAlertId(String JavaDoc alertId) {
50         this.alertId = alertId;
51     }
52
53     public String JavaDoc getType() {
54         return type;
55     }
56
57     public void setType(String JavaDoc type) {
58         this.type = type;
59     }
60
61     public long getSequenceNumber() {
62         return sequenceNumber;
63     }
64
65     public void setSequenceNumber(long sequenceNumber) {
66         this.sequenceNumber = sequenceNumber;
67     }
68
69     public String JavaDoc getMessage() {
70         return message;
71     }
72
73     public void setMessage(String JavaDoc message) {
74         this.message = message;
75     }
76
77     public long getTimeStamp() {
78         return timeStamp;
79     }
80
81     public String JavaDoc getFormattedTimeStamp(){
82         return formatter.format(new java.util.Date JavaDoc(timeStamp));
83     }
84
85     public void setTimeStamp(long timeStamp) {
86         this.timeStamp = timeStamp;
87     }
88
89     public Object JavaDoc getUserData() {
90         return userData;
91     }
92
93     public void setUserData(Object JavaDoc userData) {
94         this.userData = userData;
95     }
96
97     public Object JavaDoc getSource() {
98         return source;
99     }
100
101     public void setSource(Object JavaDoc source) {
102         this.source = source;
103     }
104
105     public String JavaDoc getAlertConfigId() {
106         return alertConfigId;
107     }
108
109     public void setAlertConfigId(String JavaDoc alertConfigId) {
110         this.alertConfigId = alertConfigId;
111     }
112
113     public String JavaDoc getAlertName() {
114         return alertName;
115     }
116
117     public void setAlertName(String JavaDoc alertName) {
118         this.alertName = alertName;
119     }
120
121     public String JavaDoc getSubject() {
122         return subject;
123     }
124
125     public void setSubject(String JavaDoc subject) {
126         this.subject = subject;
127     }
128
129     public String JavaDoc getEmailAddress() {
130         return emailAddress;
131     }
132
133     public void setEmailAddress(String JavaDoc emailAddress) {
134         this.emailAddress = emailAddress;
135     }
136
137     public String JavaDoc getApplicationId() {
138         return appId;
139     }
140
141     public void setApplicationId(String JavaDoc appId) {
142         this.appId = appId;
143     }
144
145     public String JavaDoc getApplicationName() {
146         return appName;
147     }
148
149     public void setApplicationName(String JavaDoc appName) {
150         this.appName = appName;
151     }
152 }
153
Popular Tags