org.opennms.web.notification
Class DaoWebNotificationRepository

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

public class DaoWebNotificationRepository
extends Object
implements WebNotificationRepository

DaoWebNotificationRepository class.

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

Constructor Summary
DaoWebNotificationRepository()
           
 
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

DaoWebNotificationRepository

public DaoWebNotificationRepository()
Method Detail

acknowledgeMatchingNotification

@Transactional
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.

countMatchingNotifications

@Transactional
public int countMatchingNotifications(NotificationCriteria criteria)

countMatchingNotifications

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

getMatchingNotifications

@Transactional
public Notification[] getMatchingNotifications(NotificationCriteria criteria)

getMatchingNotifications

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

getNotification

@Transactional
public Notification getNotification(int noticeId)

getNotification

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


Copyright © 2011. All Rights Reserved.