org.opennms.web.notification
Class JdbcWebNotificationRepository

java.lang.Object
  extended by org.opennms.web.notification.JdbcWebNotificationRepository
All Implemented Interfaces:
WebNotificationRepository

public class JdbcWebNotificationRepository
extends Object
implements WebNotificationRepository

JdbcWebNotificationRepository class.

Since:
1.8.1
Version:
$Id: $
Author:
ranger

Constructor Summary
JdbcWebNotificationRepository()
           
 
Method Summary
 void acknowledgeMatchingNotification(String user, Date timestamp, NotificationCriteria criteria)
          acknowledgeMatchingNotification
 int countMatchingNotifications(NotificationCriteria criteria)
          countMatchingNotifications
 Notification[] getMatchingNotifications(NotificationCriteria criteria)
          getMatchingNotifications
 Notification getNotification(int noticeId)
          getNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcWebNotificationRepository

public JdbcWebNotificationRepository()
Method Detail

acknowledgeMatchingNotification

public void acknowledgeMatchingNotification(String user,
                                            Date timestamp,
                                            NotificationCriteria criteria)

acknowledgeMatchingNotification

Specified by:
acknowledgeMatchingNotification in interface WebNotificationRepository
Parameters:
user - a String object.
timestamp - a java$util$Date object.
criteria - a NotificationCriteria object.

getMatchingNotifications

public Notification[] getMatchingNotifications(NotificationCriteria criteria)

getMatchingNotifications

Specified by:
getMatchingNotifications in interface WebNotificationRepository
Parameters:
criteria - a NotificationCriteria object.
Returns:
an array of Notification objects.

getNotification

public Notification getNotification(int noticeId)

getNotification

Specified by:
getNotification in interface WebNotificationRepository
Parameters:
noticeId - a int.
Returns:
a Notification object.

countMatchingNotifications

public int countMatchingNotifications(NotificationCriteria criteria)

countMatchingNotifications

Specified by:
countMatchingNotifications in interface WebNotificationRepository
Parameters:
criteria - a NotificationCriteria object.
Returns:
a int.


Copyright © 2011. All Rights Reserved.