|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JasmineEventNotificationSLBRemote
Interface for the JasmineEventNotification stateless bean.
| 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.util.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(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(int keepDisplayed,
java.lang.String acknowledgeButtonName,
java.lang.String... rules)
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(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. |
org.ow2.jasmine.event.beans.JasmineEventNotification |
updateEventNotification(org.ow2.jasmine.event.beans.JasmineEventNotificationUpdate updateNotification)
Looks for the given bean in the data base, knowing the specified SearchFilters, and adds a JasmineEventNotificationDetail. |
void |
updateNotificationStatus(java.lang.String id,
boolean status)
Updates the status of the notification : acknowledge or not. |
| Method Detail |
|---|
void saveExecutedAction(java.lang.String id,
org.ow2.jasmine.event.beans.JasmineEventNotificationExecutedAction action)
id - the Id of the notification to update.action - the action to save.
void updateNotificationStatus(java.lang.String id,
boolean status)
id - the id of the notification to update.status - the new status to save.void saveEvent(org.ow2.jasmine.event.beans.JasmineEventNotification n)
n - Notification to save.JasmineEventNotificationSLBRemote#saveEvent(JasmineEventNotificationEB)java.util.List<org.ow2.jasmine.event.beans.JasmineEventNotification> getAllNotifications()
JasmineEventNotification
stored in the DataBase.
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)
id - 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.
java.util.List<org.ow2.jasmine.event.beans.JasmineEventNotification> getEventNotifications(java.util.Date dateFrom,
java.util.Date dateTo)
dateFrom - the date fromdateTo - the date to
JasmineEventNotification
java.util.List<org.ow2.jasmine.event.beans.JasmineEventNotification> getEventNotifications(int keepDisplayed,
java.lang.String acknowledgeButtonName,
java.lang.String... rules)
keepDisplayed - 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".
JasmineEventNotificationorg.ow2.jasmine.event.beans.JasmineEventNotification getEventNotification(java.lang.String id)
JasmineEventNotification.
id - Id of the notification to retrieve.
org.ow2.jasmine.event.beans.JasmineEventNotification getEventNotification(java.util.List<org.ow2.jasmine.event.component.SearchFilter> filters)
SearchFilters.
filters - a list of SearchFilter to get the right bean to
update in the database.
JasmineEventNotification looked for.
org.ow2.jasmine.event.beans.JasmineEventNotification updateEventNotification(org.ow2.jasmine.event.beans.JasmineEventNotificationUpdate updateNotification)
throws java.lang.IllegalStateException
SearchFilters, and adds a JasmineEventNotificationDetail.
It returns the updated JasmineEventNotification.
updateNotification - the JasmineEventNotificationUpdate that
contains the datas to update the stored
JasmineEventNotification.
java.lang.IllegalStateException - if no filters are defined in the update
object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||