Class AqlLimitPostProcessor

java.lang.Object
org.ehrbase.openehr.aqlengine.AqlLimitPostProcessor
All Implemented Interfaces:
AqlQueryParsingPostProcessor, org.springframework.core.Ordered

@Component public class AqlLimitPostProcessor extends Object implements AqlQueryParsingPostProcessor
Applies upper bounds and/or defaults for limit/fetch to an AqlQuery.
  • Constructor Details

    • AqlLimitPostProcessor

      public AqlLimitPostProcessor(@Value("${ehrbase.rest.aql.default-limit:}") Long defaultLimit, @Value("${ehrbase.rest.aql.max-limit:}") Long maxLimit, @Value("${ehrbase.rest.aql.max-fetch:}") Long maxFetch, @Value("${ehrbase.rest.aql.fetch-precedence:REJECT}") AqlLimitPostProcessor.FetchPrecedence fetchPrecedence)
  • Method Details

    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • afterParseAql

      public void afterParseAql(org.ehrbase.openehr.sdk.aql.dto.AqlQuery aqlQuery, AqlQueryRequest request, AqlQueryContext ctx)
      Description copied from interface: AqlQueryParsingPostProcessor
      Invoked after parsing the raw AQL string. The given AqlQuery object can be modified in-place. Meta information can be added through the AqlQueryContext.
      Specified by:
      afterParseAql in interface AqlQueryParsingPostProcessor
      Parameters:
      aqlQuery - object representing the parsed AQL string
      request - the request passed to the service layer
      ctx - the query context