Interface ValuesContainer

All Known Implementing Classes:
overit.geocallapp.wfm.schedulazione.manuale.attivitaschedulabili.CAttivitaSchedulabili, overit.geocallapp.wfm.schedulazione.manuale.attivitaurgenti.CAttivitaUrgenti, Form, OutputForm, SchedulableActivities, SchedulableBundles, UrgentActivities

public interface ValuesContainer
This interface must be implemented by the objects that can collect and publish values and DA values. An example of implementation is the Form
  • Method Details

    • collectValues

      void collectValues(HashGetter values, HashGetter daValues)
      Collects the values passed as parameters by the two HashGetter
      Parameters:
      values - The map that contains the values
      daValues - The map that contains the DA values
    • setCollectedValues

      void setCollectedValues(HashGetter values, HashGetter daValues)
      Sets the values
      Parameters:
      values - The map that contains the values
      daValues - The map that contains the DA values
    • getCollectedValues

      HashGetter getCollectedValues()
      Returns the HashGetter that contains the collected values
      Returns:
      The map of the values
    • getCollectedDAValues

      HashGetter getCollectedDAValues()
      Returns the HashGetter that contains the collected DA values
      Returns:
      The map of the DA values
    • getPublishedValues

      HashGetter getPublishedValues()
      Returns the HashGetter that contains the published values
      Returns:
      The map of the published values
    • sanitizeValues

      void sanitizeValues()
      Sanitize collected values by removing those that should not be kept in memory/session (e.g. UpFiles)
    • registerSeek

      void registerSeek(String name)
      registers a validator for values that will arrive
      Parameters:
      name - the name of a field that must be seeked in every values validation
    • removeFromSeek

      default void removeFromSeek(String name)
      remove a validator from the values that will arrive
      Parameters:
      name - the name of a field that won't be seeked anymore
    • registerValidator

      void registerValidator(String name, ValueValidator vv)
      registers a validator for valuesthat will arrive
      Parameters:
      name - the name of the validator, that is the name of the arriving variable or the name concatenated with an _* if the variabile is an indexed variable
      vv - the validator instance
    • validateValues

      void validateValues(Map arriving, boolean strong)
      validate the arriving values against the regisgtered validators
      Parameters:
      arriving - the values that has been pisted through an event
      strong - if true the values validaton needs to be complete, otherwise only the validations to avoid tampering of parameters must be executed
    • isHarmlessContainer

      default boolean isHarmlessContainer()
      Gets if the container is a filter or an edit container
      Returns:
      true if is a filter container, false otherwise.
    • getReadOnlyAndNotEnabledFields

      default Map<String,Control> getReadOnlyAndNotEnabledFields()
      Gets the read only or not enabled fields registered into the values container.
      If a ro or a not enabled field it has been registered, means that field won't be configurable and it will be seeked from the server at every submit.
      Returns:
      the read only or not enabled fields registered into the values container.
    • registerReadOnlyAndNotEnabledField

      default void registerReadOnlyAndNotEnabledField(String fieldName, Control c)
      Register into the valuesContainer a read only or a not enabled field.
      Registering a ro or a not enabled field means that this field won't be configurable and it will be seeked from the server at every submit.
      Parameters:
      fieldName - The name of the field
      c - The field.