Class SelectMultipleSchemaValidator

java.lang.Object
fr.gouv.vitam.common.dsl.schema.validator.SelectMultipleSchemaValidator
All Implemented Interfaces:
DslValidator

public class SelectMultipleSchemaValidator extends Object implements DslValidator
Dsl schema validator for multiple queries DSL queries.
  • Constructor Details

    • SelectMultipleSchemaValidator

      public SelectMultipleSchemaValidator() throws IOException
      Constructor
      Throws:
      IOException - thrown when the schema file is not found or invalid
  • Method Details

    • 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 interface DslValidator
      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