public class AlertInfoObject
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
cleared
The cleared.
|
static java.lang.String |
CLEARED
The cleared.
|
private java.util.Date |
created
The created.
|
private java.lang.String |
description
The description.
|
private org.apache.log4j.Logger |
logger
The logger.
|
static java.lang.String |
OPEN
The open.
|
private java.lang.String |
source
The source.
|
private java.lang.String |
state
The state.
|
private java.lang.String |
target
The target.
|
private java.util.UUID |
uid
The uid.
|
Constructor and Description |
---|
AlertInfoObject()
Instantiates a new alert info object.
|
AlertInfoObject(java.util.HashMap<java.lang.String,java.lang.Object> rowMap)
Instantiates a new alert info object.
|
AlertInfoObject(java.lang.String source,
java.lang.String target,
java.lang.String description)
Instantiates a new alert info object from options
|
Modifier and Type | Method and Description |
---|---|
void |
addToXmlDoc(org.dom4j.Element root)
Adds the to xml doc.
|
java.util.Date |
getCleared()
Gets the cleared.
|
java.util.Date |
getCreated()
Gets the created.
|
java.lang.String |
getDescription()
Gets the description.
|
java.lang.String |
getSource()
Gets the source.
|
java.lang.String |
getState()
Gets the state.
|
java.lang.String |
getTarget()
Gets the target.
|
java.lang.String |
getUid()
Gets the uid.
|
void |
insertIntoDb(DbHelper dbHelper)
Insert into db.
|
static void |
main(java.lang.String[] args)
The main method.
|
void |
setCleared(java.util.Date cleared)
Sets the cleared.
|
void |
setCreated(java.util.Date created)
Sets the created.
|
void |
setDescription(java.lang.String description)
Sets the description.
|
void |
setSource(java.lang.String source)
Sets the source.
|
void |
setState(java.lang.String status)
Sets the state.
|
void |
setTarget(java.lang.String target)
Sets the target.
|
void |
setUid(java.lang.String uidString)
Sets the uid.
|
java.lang.String |
toString() |
public static java.lang.String CLEARED
public static java.lang.String OPEN
private java.util.UUID uid
private java.lang.String source
private java.lang.String target
private java.lang.String description
private java.lang.String state
private java.util.Date created
private java.util.Date cleared
private org.apache.log4j.Logger logger
public AlertInfoObject()
public AlertInfoObject(java.lang.String source, java.lang.String target, java.lang.String description)
source
- of the alert (user or process)target
- for the alertdescription
- the descriptionpublic AlertInfoObject(java.util.HashMap<java.lang.String,java.lang.Object> rowMap) throws java.text.ParseException, java.lang.IllegalArgumentException
rowMap
- the row mapjava.text.ParseException
- the parse exceptionjava.lang.IllegalArgumentException
- the illegal argument exceptionpublic void addToXmlDoc(org.dom4j.Element root)
root
- the rootpublic void insertIntoDb(DbHelper dbHelper) throws java.lang.Exception
dbHelper
- the db helperjava.lang.Exception
- the exceptionpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getUid()
public void setUid(java.lang.String uidString)
uidString
- the new uidpublic java.lang.String getSource()
public void setSource(java.lang.String source)
source
- the source to setpublic java.lang.String getTarget()
public void setTarget(java.lang.String target)
target
- the target to setpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- the description to setpublic java.lang.String getState()
public void setState(java.lang.String status)
status
- the status to setpublic java.util.Date getCreated()
public void setCreated(java.util.Date created)
created
- the created to setpublic java.util.Date getCleared()
public void setCleared(java.util.Date cleared)
cleared
- the cleared to setpublic static void main(java.lang.String[] args)
args
- the arguments