Class DefaultNotificationValidator
java.lang.Object
overit.geocallapp.wfm.notifications.constraint.base.DefaultNotificationValidator
- All Implemented Interfaces:
NotificationValidator
- Direct Known Subclasses:
PlantNotificationValidator
Null implementation of the
NotificationValidator.
Use this for the projects in which there are no
logic to apply for the Notification persistence-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanUserEditTheNotification(Notification notification) protected booleancheckWorkCenterCoherence(Notification notification) getProblems(Notification notification) Apply the rule to validate the notification for the insert or update operation
-
Field Details
-
ERROR_END_DATE_AFTER_CREATION
- See Also:
-
ERROR_WRONG_END_DATE
- See Also:
-
ERROR_REQUEST_BEGIN_AFTER_REQUEST_END
- See Also:
-
ERROR_FAILURE_BEGIN_AFTER_REQUEST_END
- See Also:
-
ERROD_FAILURE_BEGIN_AFTER_REQUEST_BEGIN
- See Also:
-
ERROR_WRONG_DOWNTIME_PERIOD
- See Also:
-
ERROR_FAILURE_BEGIN_DATE_AFTER_END
- See Also:
-
ERROR_WRONG_FAILURE_END_DATE
- See Also:
-
ERROR_WRONG_FAILURE_BEGIN_DATE
- See Also:
-
ERROR_WRONG_CREATION_DATE
- See Also:
-
ERROR_WORK_CENTER_NOT_FOUND_IN_OPERATIONAL_CENTER
- See Also:
-
-
Constructor Details
-
DefaultNotificationValidator
public DefaultNotificationValidator()
-
-
Method Details
-
canUserEditTheNotification
- Specified by:
canUserEditTheNotificationin interfaceNotificationValidator- Parameters:
notification- theNotificationto update- Returns:
- true if the user can update the notification; false otherwise
-
getProblems
Description copied from interface:NotificationValidatorApply the rule to validate the notification for the insert or update operation- Specified by:
getProblemsin interfaceNotificationValidator- Parameters:
notification- theNotificationto insert- Returns:
- a collection of error messages
-
checkWorkCenterCoherence
-