Class NotificationsManager
java.lang.Object
overit.geocall.util.notifications.NotificationsManager
This class expose two static method to manage the notifications for the maintenance message.
It handles the message's creation and its future retrieval.
It handles the message's creation and its future retrieval.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NotificationsManagerGets the instance of the class.voidinsertNotification(String message, Date startDate, boolean autoExpulsion) Insert the maintenance notification message into the system.Retrieve theMaintenanceNotificationobject if it exists.
-
Constructor Details
-
NotificationsManager
public NotificationsManager()
-
-
Method Details
-
getInstance
Gets the instance of the class.- Returns:
- The instance of the class.
-
insertNotification
Insert the maintenance notification message into the system.- Parameters:
message- The message that will be displayed on client sidestartDate- The date from which the maintenance will startautoExpulsion- Defines whether users will be automatically logged out of the system
-
retrieveNotification
Retrieve theMaintenanceNotificationobject if it exists.- Returns:
- The
MaintenanceNotificationobject if it exists, null otherwise.
-