Interface EntityValidator

All Known Implementing Classes:
EntityVersionValidator

public interface EntityValidator
The aim of this interface is to collect the entities and their hash version to make a validation of the EntityContainer When values are submitted from client to Server.
The main objective of this validation is to check that the form that executes the submit is still valid, i.e. that the entities associated with it have not changed since the form was loaded.
  • Method Details

    • addValidationForEntity

      void addValidationForEntity(String entityName, Company company)
      Adds an entity for the validation. All added entities will be validated into the submit phase.
      Parameters:
      entityName - The name of the entity form which retrieve the DataEntity
      company - The current Company.
    • validate

      String validate(Company company)
      Validate each registered entity to define if the EntityContainer is still valid or not.
      Parameters:
      company - The current Company.
      Returns:
      true if the EntityContainer is still valid, false otherwise.