Class NotificationsManager

java.lang.Object
overit.geocall.util.notifications.NotificationsManager

public class NotificationsManager extends Object
This class expose two static method to manage the notifications for the maintenance message.
It handles the message's creation and its future retrieval.
  • Constructor Details

    • NotificationsManager

      public NotificationsManager()
  • Method Details

    • getInstance

      public static NotificationsManager getInstance()
      Gets the instance of the class.
      Returns:
      The instance of the class.
    • insertNotification

      public void insertNotification(String message, Date startDate, boolean autoExpulsion)
      Insert the maintenance notification message into the system.
      Parameters:
      message - The message that will be displayed on client side
      startDate - The date from which the maintenance will start
      autoExpulsion - Defines whether users will be automatically logged out of the system
    • retrieveNotification

      public MaintenanceNotification retrieveNotification()
      Retrieve the MaintenanceNotification object if it exists.
      Returns:
      The MaintenanceNotification object if it exists, null otherwise.