Interface NotificationFormManager

All Known Implementing Classes:
DefaultNotificationFormManager, PlantNotificationFormManager

public interface NotificationFormManager
  • Method Details

    • prepareForm

      void prepareForm(NotificationForm form, Notification notification)
      For each field in the given form, decide if the field is visible, editable and mandatory
      Parameters:
      form - the NotificationForm to prepare for the update of the Notification
      notification - the Notification to update
    • isElementVisible

      boolean isElementVisible(Notification notification, String elementName)
      Parameters:
      notification - the Notification to consider
      elementName - the name of NotificationElements to check
      Returns:
      true if the given element is visible; false otherwise
    • isElementEditable

      boolean isElementEditable(Notification notification, String elementName)
      Parameters:
      notification - the Notification to consider
      elementName - the name of NotificationElements to check
      Returns:
      true if the given element is editable; false otherwise
    • isElementMandatory

      boolean isElementMandatory(Notification notification, String elementName)
      Parameters:
      notification - the Notification to consider
      elementName - the name of NotificationElements to check
      Returns:
      true if the given element is mandatory; false otherwise