Package io.meeds.social.reminder.service
Class ChangesReminderService
java.lang.Object
io.meeds.social.reminder.service.ChangesReminderService
Remembers, per user, which changes reminders the user has already seen, so
that a reminder dialog announcing a change in a feature is displayed once.
The reminders are contributed by the applications through the
changes-reminder component, each one identified by its name.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidacknowledge(String username, String name) Marks the reminder as seen by the user, so that it isn't displayed againbooleanisAcknowledged(String username, String name)
-
Field Details
-
INVALID_NAME_MESSAGE
- See Also:
-
-
Constructor Details
-
ChangesReminderService
public ChangesReminderService()
-
-
Method Details
-
isAcknowledged
- Parameters:
username- the user who sees the remindername- the name of the reminder- Returns:
- true when the user already saw the reminder
- Throws:
IllegalArgumentException- when the name is not a valid reminder name
-
acknowledge
Marks the reminder as seen by the user, so that it isn't displayed again- Parameters:
username- the user who saw the remindername- the name of the reminder- Throws:
IllegalArgumentException- when the name is not a valid reminder name
-