Package org.opennms.web.notification
Class NotificationModel
- java.lang.Object
-
- org.opennms.web.notification.NotificationModel
-
public class NotificationModel extends Object
Deprecated.Use theNotificationDaodirectly or use theWebNotificationRepositoryinstead of this class.
-
-
Constructor Summary
Constructors Constructor Description NotificationModel()Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Notification[]allNotifications()Deprecated.allNotificationsNotification[]allNotifications(String order)Deprecated.Return all notifications, both outstanding and acknowledged.protected static StringgetServiceName(Connection conn, Integer id)Deprecated.protected static Notification[]rs2NotifyBean(Connection conn, ResultSet rs)Deprecated.Returns the data from the result set as an array of Notification objects.
-
-
-
Method Detail
-
allNotifications
public Notification[] allNotifications() throws SQLException
Deprecated.allNotifications
- Returns:
- an array of
Notificationobjects. - Throws:
SQLException- if any.
-
allNotifications
public Notification[] allNotifications(String order) throws SQLException
Deprecated.Return all notifications, both outstanding and acknowledged.- Parameters:
order- aStringobject.- Returns:
- an array of
Notificationobjects. - Throws:
SQLException- if any.
-
getServiceName
protected static String getServiceName(Connection conn, Integer id)
Deprecated.
-
rs2NotifyBean
protected static Notification[] rs2NotifyBean(Connection conn, ResultSet rs) throws SQLException
Deprecated.Returns the data from the result set as an array of Notification objects. The ResultSet must be positioned before the first result before calling this method (this is the case right after calling java.sql.Connection#createStatement and friends or after calling java.sql.ResultSet#beforeFirst).- Parameters:
conn- aConnectionobject.rs- aResultSetobject.- Returns:
- an array of
Notificationobjects. - Throws:
SQLException- if any.
-
-