Interface NotificationFormManager
- All Known Implementing Classes:
DefaultNotificationFormManager,PlantNotificationFormManager
public interface NotificationFormManager
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisElementEditable(Notification notification, String elementName) booleanisElementMandatory(Notification notification, String elementName) booleanisElementVisible(Notification notification, String elementName) voidprepareForm(NotificationForm form, Notification notification) For each field in the given form, decide if the field is visible, editable and mandatory
-
Method Details
-
prepareForm
For each field in the given form, decide if the field is visible, editable and mandatory- Parameters:
form- theNotificationFormto prepare for the update of the Notificationnotification- theNotificationto update
-
isElementVisible
- Parameters:
notification- theNotificationto considerelementName- the name ofNotificationElementsto check- Returns:
- true if the given element is visible; false otherwise
-
isElementEditable
- Parameters:
notification- theNotificationto considerelementName- the name ofNotificationElementsto check- Returns:
- true if the given element is editable; false otherwise
-
isElementMandatory
- Parameters:
notification- theNotificationto considerelementName- the name ofNotificationElementsto check- Returns:
- true if the given element is mandatory; false otherwise
-