Class NotificationDao


public class NotificationDao extends AbstractDao
Provides a DAO for the Notification entity.
See Also:
  • Constructor Details

    • NotificationDao

      public NotificationDao()
  • Method Details

    • getNotificationList

      public List<Notification> getNotificationList(String message, String portal, Date startDate, Date endDate, String sortBy, boolean ascending, int pageSize)
      Return the list of notifications matching the specified search criteria
      Parameters:
      message - a substring of the notification message (optional)
      portal - the OID of the portal associated with the notification (optional)
      startDate - the lower bound on the notification start date (optional)
      endDate - the upper bound on the notification end date (optional)
      sortBy - the attribute to sort by (optional, defaults to notification start date if not set)
      ascending - whether to sort in ascending order (applies only if sortBy is set)
      pageSize - the page size used in the query
      Returns:
      the list of matching notifications
    • getStatusUpdates

      public List<Notification> getStatusUpdates()
      Return a List of scheduled status changes (Notification entities of type StatusChange)
      Returns:
      List of status changes that are past the current date.
      Since:
      22.04.0
    • getNotificationListForSearchPage

      public List<Notification> getNotificationListForSearchPage(NotificationType type, Status status, String message, String portal, String form, String client, Date startDate, Date endDate, String sortBy, boolean ascending, int pageSize)
      Return the list of notifications matching the specified search criteria. Can handle both Notification and Status Change Types
      Parameters:
      type - Type of the notification
      status - Status for Status change
      message - a substring of the notification message (optional)
      portal - the OID of the portal associated with the notification (optional)
      startDate - the lower bound on the notification start date (optional)
      endDate - the upper bound on the notification end date (optional)
      sortBy - the attribute to sort by (optional, defaults to notification start date if not set)
      ascending - whether to sort in ascending order (applies only if sortBy is set)
      pageSize - the page size used in the query
      Returns:
      List of Notification matching search parameters
      Since:
      22.04.0
    • getCurrentNotificationsForPortal

      public List<Notification> getCurrentNotificationsForPortal(Portal portal)
      Return the list of current notifications for the specified portal
      Parameters:
      portal - the portal object
      Returns:
      the list of current notifications