|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ow2.jasmine.monitoring.eventswitch.beans.impl.JasmineEventNotificationSLBImpl
public class JasmineEventNotificationSLBImpl
Implementation of the JasmineEventNotification stateless bean.
| Constructor Summary | |
|---|---|
JasmineEventNotificationSLBImpl()
|
|
| Method Summary | |
|---|---|
List<org.ow2.jasmine.event.beans.JasmineEventNotification> |
getAllNotifications()
Gets all the notification events from the DataBase. |
org.ow2.jasmine.event.beans.JasmineEventNotification |
getEventNotification(List<org.ow2.jasmine.event.component.SearchFilter> filters)
Looks for the given bean in the data base, knowing the specified SearchFilters. |
org.ow2.jasmine.event.beans.JasmineEventNotification |
getEventNotification(String id)
Looks for the given bean in the data base. |
List<org.ow2.jasmine.event.beans.JasmineEventNotification> |
getEventNotifications(Date dateFrom,
Date dateTo)
Gets the event notification between two dates. IMPORTANT: the details and actions will not be retrieved. |
List<org.ow2.jasmine.event.beans.JasmineEventNotification> |
getEventNotifications(int keepDisplayed,
String acknowledgeButtonName,
String... rules)
Implementation of inherited method: Gets the event notifications for a given rule, a "synchronized" flag and a keepDisplayed value. IMPORTANT: the details and actions will not be retrieved. |
org.ow2.jasmine.event.beans.JasmineEventNotification[] |
getEventNotifications(String id,
Date date,
String level,
String message,
Boolean status,
String rule,
String orderBy,
Integer limit)
Implementation of inherited method: looks for the beans searched for, converts the search into an array of JasmineEventNotificationEB objects and returns. |
void |
saveEvent(org.ow2.jasmine.event.beans.JasmineEventNotification n)
Implementation of inherited method: creates the JasmineEventNotification entity bean corresponding to given datum and saves an event on the database. |
void |
saveExecutedAction(String id,
org.ow2.jasmine.event.beans.JasmineEventNotificationExecutedAction action)
Saves the action executed by a user in the DataBase. |
org.ow2.jasmine.event.beans.JasmineEventNotification |
updateEventNotification(org.ow2.jasmine.event.beans.JasmineEventNotificationUpdate updateDatas)
Looks for the given bean in the data base, knowing the specified SearchFilters, and adds a JasmineEventNotificationDetail. |
void |
updateNotificationStatus(String id,
boolean status)
Updates the status of the notification : acknowledge or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JasmineEventNotificationSLBImpl()
| Method Detail |
|---|
public void saveExecutedAction(String id,
org.ow2.jasmine.event.beans.JasmineEventNotificationExecutedAction action)
saveExecutedAction in interface JasmineEventNotificationSLBRemoteid - the Id of the notification to update.action - the action to save.JasmineEventNotificationSLBRemote.saveExecutedAction(String,
JasmineEventNotificationExecutedAction)
public void updateNotificationStatus(String id,
boolean status)
updateNotificationStatus in interface JasmineEventNotificationSLBRemoteid - the id of the notification to update.status - the new status to save.public void saveEvent(org.ow2.jasmine.event.beans.JasmineEventNotification n)
saveEvent in interface JasmineEventNotificationSLBRemoten - Notification to save.JasmineEventNotificationSLBRemote#saveEvent(JasmineEventNotificationEB)
public List<org.ow2.jasmine.event.beans.JasmineEventNotification> getEventNotifications(int keepDisplayed,
String acknowledgeButtonName,
String... rules)
getEventNotifications in interface JasmineEventNotificationSLBRemotekeepDisplayed - the keepDisplayed option, expressed in hours:
acknowledgeButtonName - the name of the ACKNOWLEDGE button. if
null, "synchronized" is considered to be false; otherwise it is
considered to be true.rules - rule names. might contain an * character at the end,
meaning "rule starts with".
JasmineEventNotification
public List<org.ow2.jasmine.event.beans.JasmineEventNotification> getEventNotifications(Date dateFrom,
Date dateTo)
getEventNotifications in interface JasmineEventNotificationSLBRemotedateFrom - the date fromdateTo - the date to
JasmineEventNotification
public org.ow2.jasmine.event.beans.JasmineEventNotification[] getEventNotifications(String id,
Date date,
String level,
String message,
Boolean status,
String rule,
String orderBy,
Integer limit)
getEventNotifications in interface JasmineEventNotificationSLBRemoteid - Notification id, ignored if null.date - Notification date, ignored if null.level - Notification level, ignored if null.message - Associated message, ignored if null.status - Notification status, ignored if null.rule - The rule id that caused the notification, ignored if null.orderBy - Order using column, ignored if null..limit - Maximal number of results to get, ignored if null.
public List<org.ow2.jasmine.event.beans.JasmineEventNotification> getAllNotifications()
getAllNotifications in interface JasmineEventNotificationSLBRemoteJasmineEventNotification
stored in the DataBase.public org.ow2.jasmine.event.beans.JasmineEventNotification getEventNotification(String id)
JasmineEventNotification.
getEventNotification in interface JasmineEventNotificationSLBRemoteid - Id of the notification to retrieve.
public org.ow2.jasmine.event.beans.JasmineEventNotification updateEventNotification(org.ow2.jasmine.event.beans.JasmineEventNotificationUpdate updateDatas)
throws IllegalStateException
SearchFilters, and adds a JasmineEventNotificationDetail.
It returns the updated JasmineEventNotification.
updateEventNotification in interface JasmineEventNotificationSLBRemoteIllegalStateExceptionpublic org.ow2.jasmine.event.beans.JasmineEventNotification getEventNotification(List<org.ow2.jasmine.event.component.SearchFilter> filters)
SearchFilters.
getEventNotification in interface JasmineEventNotificationSLBRemotefilters - a list of SearchFilter to get the right bean to
update in the database.
JasmineEventNotification looked for.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||