Package org.opennms.web.notification
Class DaoWebNotificationRepository
- java.lang.Object
-
- org.opennms.web.notification.DaoWebNotificationRepository
-
- All Implemented Interfaces:
WebNotificationRepository
,org.springframework.beans.factory.InitializingBean
public class DaoWebNotificationRepository extends Object implements WebNotificationRepository, org.springframework.beans.factory.InitializingBean
DaoWebNotificationRepository class.
- Since:
- 1.8.1
- Version:
- $Id: $
- Author:
- ranger
-
-
Constructor Summary
Constructors Constructor Description DaoWebNotificationRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acknowledgeMatchingNotification(String user, Date timestamp, NotificationCriteria criteria)
acknowledgeMatchingNotificationvoid
afterPropertiesSet()
int
countMatchingNotifications(NotificationCriteria criteria)
countMatchingNotificationsNotification[]
getMatchingNotifications(NotificationCriteria criteria)
getMatchingNotificationsNotification
getNotification(int noticeId)
getNotification
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
acknowledgeMatchingNotification
@Transactional public void acknowledgeMatchingNotification(String user, Date timestamp, NotificationCriteria criteria)
acknowledgeMatchingNotification
- Specified by:
acknowledgeMatchingNotification
in interfaceWebNotificationRepository
- Parameters:
user
- aString
object.timestamp
- a java$util$Date object.criteria
- aNotificationCriteria
object.
-
countMatchingNotifications
@Transactional public int countMatchingNotifications(NotificationCriteria criteria)
countMatchingNotifications
- Specified by:
countMatchingNotifications
in interfaceWebNotificationRepository
- Parameters:
criteria
- aNotificationCriteria
object.- Returns:
- a int.
-
getMatchingNotifications
@Transactional public Notification[] getMatchingNotifications(NotificationCriteria criteria)
getMatchingNotifications
- Specified by:
getMatchingNotifications
in interfaceWebNotificationRepository
- Parameters:
criteria
- aNotificationCriteria
object.- Returns:
- an array of
Notification
objects.
-
getNotification
@Transactional public Notification getNotification(int noticeId)
getNotification
- Specified by:
getNotification
in interfaceWebNotificationRepository
- Parameters:
noticeId
- a int.- Returns:
- a
Notification
object.
-
-