org.ow2.jasmine.monitoring.eventswitch.beans.impl
Class JasmineEventNotificationEBImpl

java.lang.Object
  extended by org.ow2.jasmine.monitoring.eventswitch.beans.impl.JasmineEventNotificationEBImpl
All Implemented Interfaces:
Serializable

public class JasmineEventNotificationEBImpl
extends Object
implements Serializable

Entity bean for a JASMINe Event Notification.

Author:
HAN Tianyi
See Also:
Serialized Form

Constructor Summary
JasmineEventNotificationEBImpl()
          default constructor.
 
Method Summary
 void addAction(JasmineEventNotificationActionEBImpl action)
          Add an action to the list
 boolean addDetail(JasmineEventDetailEB p_Detail)
          Adds a detail to the notification.
 List<org.ow2.jasmine.event.beans.JasmineEventNotificationExecutedAction> getActions()
           
 Date getDate()
           
 List<JasmineEventDetailEB> getDetails()
           
 String getId()
           
 String getLevel()
           
 String getMessage()
           
 List<org.ow2.jasmine.event.beans.JasmineEventNotificationDetail> getNotificationDetails()
           
 String getRule()
           
 Boolean getStatus()
           
 void setActions(List<JasmineEventNotificationActionEBImpl> actions)
           
 void setDate(Date d)
           
 void setDetails(List<JasmineEventDetailEB> details)
           
 void setId(String i)
           
 void setLevel(String l)
           
 void setMessage(String m)
           
 void setRule(String r)
           
 void setStatus(Boolean s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JasmineEventNotificationEBImpl

public JasmineEventNotificationEBImpl()
default constructor.

Method Detail

getId

public String getId()
Returns:
Primary key

setId

public void setId(String i)
Parameters:
i - Primary key

getDate

public Date getDate()
Returns:
Time of Notification (precise up to a second).

setDate

public void setDate(Date d)
Parameters:
d - Time of Notification (precise up to a second).

getLevel

public String getLevel()
Returns:
Level of Notification

setLevel

public void setLevel(String l)
Parameters:
l - Level of Notification

getMessage

public String getMessage()
Returns:
Message of Notification

setMessage

public void setMessage(String m)
Parameters:
m - Message of Notification

getStatus

public Boolean getStatus()
Returns:
Status of Notification

setStatus

public void setStatus(Boolean s)
Parameters:
s - Status of Notification

getRule

public String getRule()
Returns:
The id of rule for Notification

setRule

public void setRule(String r)
Parameters:
r - id Id of rule for Notification

getDetails

public List<JasmineEventDetailEB> getDetails()
Returns:
the details

setDetails

public void setDetails(List<JasmineEventDetailEB> details)
Parameters:
details - the details to set

addDetail

public boolean addDetail(JasmineEventDetailEB p_Detail)
Adds a detail to the notification. If an entry already exist with the same key, the value is updated, and true is returned.

Parameters:
p_Detail - the detail to add
Returns:
true if the detail has been updated, false otherwise (added or not).

getNotificationDetails

public List<org.ow2.jasmine.event.beans.JasmineEventNotificationDetail> getNotificationDetails()
Returns:
the details list of this notification

getActions

public List<org.ow2.jasmine.event.beans.JasmineEventNotificationExecutedAction> getActions()
Returns:
the actions

setActions

public void setActions(List<JasmineEventNotificationActionEBImpl> actions)
Parameters:
actions - the actions to set

addAction

public void addAction(JasmineEventNotificationActionEBImpl action)
Add an action to the list

Parameters:
action - the JasmineEventNotificationActionEBImpl to add


Copyright © 2012 OW2 Consortium. All Rights Reserved.