1 16 package org.jmanage.core.config; 17 18 23 public class AlertConfig { 24 25 private String alertId; 26 private String alertName; 27 private String [] alertDelivery; 28 private String emailAddress; 29 private AlertSourceConfig alertSourceConfig; 30 31 public static String getNextAlertId(){ 32 return String.valueOf(System.currentTimeMillis()); 33 } 34 public AlertConfig(){ 35 36 } 37 public AlertConfig(String alertId, String alertName, 38 String [] alertDelivery, String emailAddress){ 39 this.alertId = alertId; 40 this.alertName = alertName; 41 this.alertDelivery = alertDelivery; 42 this.emailAddress = emailAddress; 43 } 44 45 public String getEmailAddress() { 46 return emailAddress; 47 } 48 49 public void setEmailAddress(String emailAddress) { 50 this.emailAddress = emailAddress; 51 } 52 53 public String getAlertId() { 54 return alertId; 55 } 56 57 public void setAlertId(String alertId) { 58 this.alertId = alertId; 59 } 60 61 public String getAlertName() { 62 return alertName; 63 } 64 65 public void setAlertName(String alertName) { 66 this.alertName = alertName; 67 } 68 69 public String [] getAlertDelivery() { 70 return alertDelivery; 71 } 72 73 public void setAlertDelivery(String [] 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 |