Interface NotificationValidator

All Known Implementing Classes:
DefaultNotificationValidator, PlantNotificationValidator

public interface NotificationValidator
  • Method Details

    • canUserEditTheNotification

      boolean canUserEditTheNotification(Notification notification)
      Parameters:
      notification - the Notification to update
      Returns:
      true if the user can update the notification; false otherwise
    • getProblems

      Collection<String> getProblems(Notification notification)
      Apply the rule to validate the notification for the insert or update operation
      Parameters:
      notification - the Notification to insert
      Returns:
      a collection of error messages