Class PageLimitValidator
java.lang.Object
ch.tocco.nice2.persist.core.api.validation.AbstractEntitiesValidator
ch.tocco.nice2.widget.impl.validator.PageLimitValidator
- All Implemented Interfaces:
EntitiesValidator
Makes sure that users can't create Page_limit entities for higher page sizes than 1000.
The REST API doesn't allow higher `_limit` query parameters than 1000, therefore it doesn't make
sense to create Page_limits which are higher than that.
-
Constructor Summary
-
Method Summary
Methods inherited from class ch.tocco.nice2.persist.core.api.validation.AbstractEntitiesValidator
addMyself, getName
-
Constructor Details
-
PageLimitValidator
public PageLimitValidator()
-
-
Method Details
-
validate
public void validate(List<Entity> pageLimitEntities, Map<Entity, EntityValidationResult> validationResults) Description copied from interface:EntitiesValidator
Validate all entities (of one entity model) that where changed in a transaction- Parameters:
pageLimitEntities
- the entities to be validatedvalidationResults
- a map of EntityValidationResults, contains anEntityValidationResult
for each entity. SeeEntityValidationResult
for more details on how to use the EntityValidationResult
-