Class QueryUtil

java.lang.Object
com.adobe.acs.commons.cqsearch.QueryUtil

public final class QueryUtil extends Object
Simple utility to use as an alternative to deprecated CloseableQuery in older versions of AEM.
  • Method Details

    • setResourceResolverOn

      public static void setResourceResolverOn(org.apache.sling.api.resource.ResourceResolver resolver, com.day.cq.search.Query query)
      Uses reflection to forcibly set the Query object's ResourceResolver to the provided.