Class SelectMultipleSchemaValidator
- java.lang.Object
-
- fr.gouv.vitam.common.dsl.schema.validator.SelectMultipleSchemaValidator
-
- All Implemented Interfaces:
DslValidator
public class SelectMultipleSchemaValidator extends java.lang.Object implements DslValidator
Dsl schema validator for multiple queries DSL queries.
-
-
Constructor Summary
Constructors Constructor Description SelectMultipleSchemaValidator()
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
checkAuthorizeTrackTotalHits(com.fasterxml.jackson.databind.JsonNode queryJson, boolean configAuthorizeTrackTotalHits)
Check if property track_total_hits is already authorized in order to use it in DSL filtervoid
validate(com.fasterxml.jackson.databind.JsonNode dsl)
Validate a dsl querystatic void
validateStreamQuery(com.fasterxml.jackson.databind.JsonNode queryJson)
Check if query is a valid stream query or not
-
-
-
Method Detail
-
validate
public void validate(com.fasterxml.jackson.databind.JsonNode dsl) throws ValidationException
Description copied from interface:DslValidator
Validate a dsl query- Specified by:
validate
in interfaceDslValidator
- Parameters:
dsl
- dsl query- Throws:
ValidationException
- thrown if dsl query is not valid
-
validateStreamQuery
public static void validateStreamQuery(com.fasterxml.jackson.databind.JsonNode queryJson) throws ValidationException
Check if query is a valid stream query or not- Parameters:
queryJson
-- Throws:
ValidationException
-
checkAuthorizeTrackTotalHits
public static void checkAuthorizeTrackTotalHits(com.fasterxml.jackson.databind.JsonNode queryJson, boolean configAuthorizeTrackTotalHits) throws ValidationException
Check if property track_total_hits is already authorized in order to use it in DSL filter- Parameters:
queryJson
-configAuthorizeTrackTotalHits
-- Throws:
ValidationException
-
-