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

@Entity public class RecurringNotification extends AbstractAuditableEntity
Class representation of a recurring notification.
Version:
3.0.4
Author:
Stephen Prizio
  • 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

      public LocalDate getNextNotificationDate(LocalDate notificationDate)
      Computes the next notification date for the given notification date.
      Parameters:
      notificationDate - LocalDate
      Returns:
      next notification LocalDate
    • getNextNotificationDateTime

      public LocalDateTime getNextNotificationDateTime(LocalDateTime notificationDateTime)
      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.