Interface NotificationValidator
- All Known Implementing Classes:
DefaultNotificationValidator,PlantNotificationValidator
public interface NotificationValidator
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanUserEditTheNotification(Notification notification) getProblems(Notification notification) Apply the rule to validate the notification for the insert or update operation
-
Method Details
-
canUserEditTheNotification
- Parameters:
notification- theNotificationto update- Returns:
- true if the user can update the notification; false otherwise
-
getProblems
Apply the rule to validate the notification for the insert or update operation- Parameters:
notification- theNotificationto insert- Returns:
- a collection of error messages
-