Class SelectMultipleSchemaValidator
java.lang.Object
fr.gouv.vitam.common.dsl.schema.validator.SelectMultipleSchemaValidator
- All Implemented Interfaces:
DslValidator
Dsl schema validator for multiple queries DSL queries.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
-
Constructor Details
-
SelectMultipleSchemaValidator
Constructor- Throws:
IOException
- thrown when the schema file is not found or invalid
-
-
Method Details
-
validate
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
-