KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jmanage > core > config > AlertConfig


1 /**
2  * Copyright 2004-2005 jManage.org
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.jmanage.core.config;
17
18 /**
19   * Date: May 25, 2005 2:34:02 PM
20  * @author Bhavana
21  * @author Rakesh Kalra
22  */

23 public class AlertConfig {
24
25     private String JavaDoc alertId;
26     private String JavaDoc alertName;
27     private String JavaDoc[] alertDelivery;
28     private String JavaDoc emailAddress;
29     private AlertSourceConfig alertSourceConfig;
30
31     public static String JavaDoc getNextAlertId(){
32         return String.valueOf(System.currentTimeMillis());
33     }
34     public AlertConfig(){
35
36     }
37     public AlertConfig(String JavaDoc alertId, String JavaDoc alertName,
38                        String JavaDoc[] alertDelivery, String JavaDoc emailAddress){
39         this.alertId = alertId;
40         this.alertName = alertName;
41         this.alertDelivery = alertDelivery;
42         this.emailAddress = emailAddress;
43     }
44
45     public String JavaDoc getEmailAddress() {
46         return emailAddress;
47     }
48
49     public void setEmailAddress(String JavaDoc emailAddress) {
50         this.emailAddress = emailAddress;
51     }
52
53     public String JavaDoc getAlertId() {
54         return alertId;
55     }
56
57     public void setAlertId(String JavaDoc alertId) {
58         this.alertId = alertId;
59     }
60
61     public String JavaDoc getAlertName() {
62         return alertName;
63     }
64
65     public void setAlertName(String JavaDoc alertName) {
66         this.alertName = alertName;
67     }
68
69     public String JavaDoc[] getAlertDelivery() {
70         return alertDelivery;
71     }
72
73     public void setAlertDelivery(String JavaDoc[] alertDelivery) {
74         if(alertDelivery!=null){
75             this.alertDelivery = alertDelivery;
76         }
77     }
78
79     public AlertSourceConfig getAlertSourceConfig() {
80         return alertSourceConfig;
81     }
82
83     public void setAlertSourceConfig(AlertSourceConfig alertSourceConfig) {
84         this.alertSourceConfig = alertSourceConfig;
85     }
86 }
87
Popular Tags