Package org.opennms.web.notification
Class NotificationModel
- java.lang.Object
-
- org.opennms.web.notification.NotificationModel
-
public class NotificationModel extends java.lang.Object
Deprecated.Use theNotificationDao
directly or use theWebNotificationRepository
instead 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(java.lang.String order)
Deprecated.Return all notifications, both outstanding and acknowledged.protected static java.lang.String
getServiceName(java.sql.Connection conn, java.lang.Integer id)
Deprecated.protected static Notification[]
rs2NotifyBean(java.sql.Connection conn, java.sql.ResultSet rs)
Deprecated.Returns the data from the result set as an array of Notification objects.
-
-
-
Method Detail
-
allNotifications
public Notification[] allNotifications() throws java.sql.SQLException
Deprecated.allNotifications
- Returns:
- an array of
Notification
objects. - Throws:
java.sql.SQLException
- if any.
-
allNotifications
public Notification[] allNotifications(java.lang.String order) throws java.sql.SQLException
Deprecated.Return all notifications, both outstanding and acknowledged.- Parameters:
order
- aString
object.- Returns:
- an array of
Notification
objects. - Throws:
java.sql.SQLException
- if any.
-
getServiceName
protected static java.lang.String getServiceName(java.sql.Connection conn, java.lang.Integer id)
Deprecated.
-
rs2NotifyBean
protected static Notification[] rs2NotifyBean(java.sql.Connection conn, java.sql.ResultSet rs) throws java.sql.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
- aConnection
object.rs
- aResultSet
object.- Returns:
- an array of
Notification
objects. - Throws:
java.sql.SQLException
- if any.
-
-