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