--- projects/cms/source/server/uk/org/iscream/cms/server/client/Alert.java 2001/03/02 00:13:57 1.4 +++ projects/cms/source/server/uk/org/iscream/cms/server/client/Alert.java 2001/03/02 00:35:50 1.5 @@ -8,7 +8,7 @@ import uk.ac.ukc.iscream.util.*; * Alert Object * * @author $Author: tdb $ - * @version $Id: Alert.java,v 1.4 2001/03/02 00:13:57 tdb Exp $ + * @version $Id: Alert.java,v 1.5 2001/03/02 00:35:50 tdb Exp $ */ public class Alert { @@ -17,7 +17,7 @@ public class Alert { /** * The current CVS revision of this class */ - public static final String REVISION = "$Revision: 1.4 $"; + public static final String REVISION = "$Revision: 1.5 $"; public static final int OK = 0; public static final int WARNING = 1; @@ -34,8 +34,9 @@ public class Alert { * * @param level the level of the alert */ - public Alert(int level, String thresholdValue, String value, String attributeName) { + public Alert(int level, String source, String thresholdValue, String value, String attributeName) { _level = level; + _source = source; _thresholdValue = thresholdValue; _value = value; _attributeName = attributeName; @@ -70,6 +71,10 @@ public class Alert { return _level; } + public String getSource() { + return _source; + } + public String getValue() { return _value; } @@ -100,6 +105,7 @@ public class Alert { */ private int _level; + private String _source; private String _value; private String _thresholdValue; private String _attributeName;