Package overit.geocall.basic.ui
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
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.
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 Summary
Modifier and TypeMethodDescriptionvoidaddValidationForEntity(String entityName, Company company) Adds an entity for the validation.Validate each registered entity to define if theEntityContaineris still valid or not.
-
Method Details
-
addValidationForEntity
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 theDataEntitycompany- The currentCompany.
-
validate
Validate each registered entity to define if theEntityContaineris still valid or not.- Parameters:
company- The currentCompany.- Returns:
trueif theEntityContaineris still valid,falseotherwise.
-