Class EntityValidationRSQLVisitor

java.lang.Object
in.co.akshitbansal.springwebquery.ast.AbstractValidationRSQLVisitor
in.co.akshitbansal.springwebquery.ast.EntityValidationRSQLVisitor
All Implemented Interfaces:
cz.jirutka.rsql.parser.ast.RSQLVisitor<Void,NodeMetadata>

public class EntityValidationRSQLVisitor extends AbstractValidationRSQLVisitor
RSQL AST visitor that validates selectors directly against an entity model.

This visitor resolves request selectors to entity fields, applies any configured FieldMapping aliases, and ensures that the resolved terminal field is filterable for the requested operator.

It is typically used by entity-aware specification resolvers before converting a parsed RSQL tree into a Spring Data JPA Specification.

See Also:
  • Constructor Details

    • EntityValidationRSQLVisitor

      protected EntityValidationRSQLVisitor(FieldResolver fieldResolver, FilterableFieldValidator filterableFieldValidator, boolean andNodeAllowed, boolean orNodeAllowed, int maxDepth)
      Creates a new entity validation visitor with the specified configuration.
      Parameters:
      fieldResolver - resolver that validates selectors against the effective entity contract
      filterableFieldValidator - validator used to enforce RSQLFilterable constraints
      andNodeAllowed - whether logical AND operator is allowed
      orNodeAllowed - whether logical OR operator is allowed
      maxDepth - maximum allowed depth for the RSQL AST
  • Method Details