Class RecurringNotification
java.lang.Object
com.bluebell.greenhouse.platform.models.core.entities.AbstractAuditableEntity
com.bluebell.greenhouse.platform.models.core.entities.notification.RecurringNotification
- All Implemented Interfaces:
GenericEntity
Class representation of a recurring notification.
- Version:
- 3.0.4
- Author:
- Stephen Prizio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNextNotificationDate(LocalDate notificationDate) Computes the next notification date for the given notification date.getNextNotificationDateTime(LocalDateTime notificationDateTime) Computes the next notification date and time for the given notification date and time.booleanComputes whether the notification is due to be sent.voidMarks the notification as sent now.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GenericEntity
getCreatedAt, getId, getModifiedAt, isCreatedAtInferred
-
Constructor Details
-
RecurringNotification
public RecurringNotification()
-
-
Method Details
-
isDueForNotification
public boolean isDueForNotification()Computes whether the notification is due to be sent.- Returns:
- true if the notification is due to be sent
-
getNextNotificationDate
-
getNextNotificationDateTime
Computes the next notification date and time for the given notification date and time.- Parameters:
notificationDateTime-LocalDateTime- Returns:
- next notification
LocalDateTime
-
markNotified
public void markNotified()Marks the notification as sent now.
-