org.ow2.jasmine.monitoring.eventswitch.beans
Interface JasmineEventNotificationSLBRemote


public interface JasmineEventNotificationSLBRemote

Interface for the JasmineEventNotification stateless bean.

Author:
HAN Tianyi

Method Summary
 java.util.List<org.ow2.jasmine.event.beans.JasmineEventNotification> getAllNotifications()
          Gets all the notification events from the DataBase.
 org.ow2.jasmine.event.beans.JasmineEventNotification getEventNotification(java.lang.String id)
          Looks for the given bean in the data base.
 java.util.List<org.ow2.jasmine.event.beans.JasmineEventNotification> getEventNotifications(java.util.Date dateFrom, java.util.Date dateTo)
          Gets the event notification between two dates.
 java.util.List<org.ow2.jasmine.event.beans.JasmineEventNotification> getEventNotifications(java.lang.String... rulePattern)
          Gets the event notification matching a certain rule pattern.
 org.ow2.jasmine.event.beans.JasmineEventNotification[] getEventNotifications(java.lang.String id, java.util.Date date, java.lang.String level, java.lang.String message, java.lang.Boolean status, java.lang.String rule, java.lang.String orderBy, java.lang.Integer limit)
          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)
          creates the JasmineEventNotification entity bean corresponding to given datum and saves an event on the database.
 void saveExecutedAction(java.lang.String id, org.ow2.jasmine.event.beans.JasmineEventNotificationExecutedAction action)
          Saves the action executed by a user in the DataBase.
 void updateNotificationStatus(java.lang.String id, boolean status)
          Updates the status of the notification : acknowledge or not.
 

Method Detail

saveExecutedAction

void saveExecutedAction(java.lang.String id,
                        org.ow2.jasmine.event.beans.JasmineEventNotificationExecutedAction action)
Saves the action executed by a user in the DataBase.

Parameters:
id - the Id of the notification to update.
action - the action to save.

updateNotificationStatus

void updateNotificationStatus(java.lang.String id,
                              boolean status)
Updates the status of the notification : acknowledge or not.

Parameters:
id - the id of the notification to update.
status - the new status to save.

saveEvent

void saveEvent(org.ow2.jasmine.event.beans.JasmineEventNotification n)
creates the JasmineEventNotification entity bean corresponding to given datum and saves an event on the database.

Parameters:
n - Notification to save.
See Also:
JasmineEventNotificationSLBRemote#saveEvent(JasmineEventNotificationEB)

getEventNotifications

org.ow2.jasmine.event.beans.JasmineEventNotification[] getEventNotifications(java.lang.String id,
                                                                             java.util.Date date,
                                                                             java.lang.String level,
                                                                             java.lang.String message,
                                                                             java.lang.Boolean status,
                                                                             java.lang.String rule,
                                                                             java.lang.String orderBy,
                                                                             java.lang.Integer limit)
looks for the beans searched for, converts the search into an array of JasmineEventNotificationEB objects and returns.

Parameters:
id - Notification id
date - Notification date
level - Notification level
message - Associated message
status - Notification status
rule - The rule id that caused the notification
orderBy - Order using column.
limit - Maximal number of results to get.
Returns:
EventNotifications corresponding to the given search, null if none found.
See Also:
JasmineEventNotification[] getEventNotifications(String, Date, String, String, Boolean, int, String, int);

getEventNotifications

java.util.List<org.ow2.jasmine.event.beans.JasmineEventNotification> getEventNotifications(java.util.Date dateFrom,
                                                                                           java.util.Date dateTo)
Gets the event notification between two dates.

Parameters:
dateFrom - the date from
dateTo - the date to
Returns:
a list of JasmineEventNotification

getEventNotifications

java.util.List<org.ow2.jasmine.event.beans.JasmineEventNotification> getEventNotifications(java.lang.String... rulePattern)
Gets the event notification matching a certain rule pattern. The rule pattern will be treated as case-insensitive and * characters will be replaced by % characters (which means "any string").

Parameters:
rulePattern - rule patterns
Returns:
a list of JasmineEventNotification

getAllNotifications

java.util.List<org.ow2.jasmine.event.beans.JasmineEventNotification> getAllNotifications()
Gets all the notification events from the DataBase.

Returns:
A list that contains all the JasmineEventNotification stored in the DataBase.

getEventNotification

org.ow2.jasmine.event.beans.JasmineEventNotification getEventNotification(java.lang.String id)
Looks for the given bean in the data base. It returns the associated JasmineEventNotification.

Parameters:
id - Id of the notification to retrieve.
Returns:
the retrieved notification.


Copyright © 2009 OW2 Consortium. All Rights Reserved.