Class QueryBuilderViewHandler

  • All Implemented Interfaces:
    Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    @Properties(@Property(label="Servlet Paths",name="sling.servlet.paths",value="/bin/wcm/contentfinder/qb/view"))
    @Service
    public final class QueryBuilderViewHandler
    extends com.day.cq.wcm.core.contentfinder.ViewHandler
    ACS AEM Commons - GQL to Querybuilder View Handler Leverage Querybuilder to run ContentFinder queries
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class com.day.cq.wcm.core.contentfinder.ViewHandler

        DEFAULT_LIMIT, ITEM_RESOURCE_TYPE, LIMIT, QUERY, TYPE
      • Fields inherited from class com.day.cq.commons.servlets.AbstractPredicateServlet

        FILTER_PARAM, PATH_PARAM, PREDICATE_PARAM
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected com.day.cq.wcm.core.contentfinder.ViewQuery createQuery​(org.apache.sling.api.SlingHttpServletRequest slingRequest, javax.jcr.Session session, String queryString)  
      • Methods inherited from class com.day.cq.wcm.core.contentfinder.ViewHandler

        doGet, executeSearch, generateHtmlOutput, getHitsArray, getTagTitleGQLSearchExpression, preserveWildcards, revertWildcards
      • Methods inherited from class com.day.cq.wcm.core.contentfinder.ContentFinderListInfoProviderHelper

        activate, bindListInfoProvider, deactivate, pingCallbacksWithItem, unbindListInfoProvider
      • Methods inherited from class com.day.cq.commons.servlets.AbstractPredicateServlet

        bindProvider, doGet, getPredicate, selectorPredicateStart, unbindProvider
      • Methods inherited from class org.apache.sling.api.servlets.SlingAllMethodsServlet

        doDelete, doPost, doPut, getAllowedRequestMethods, isMethodValid, mayService
      • Methods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet

        doGeneric, doHead, doOptions, doTrace, getServletInfo, handleMethodNotImplemented, service, service
      • Methods inherited from class javax.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, log
    • Constructor Detail

      • QueryBuilderViewHandler

        public QueryBuilderViewHandler()
    • Method Detail

      • createQuery

        protected com.day.cq.wcm.core.contentfinder.ViewQuery createQuery​(org.apache.sling.api.SlingHttpServletRequest slingRequest,
                                                                          javax.jcr.Session session,
                                                                          String queryString)
                                                                   throws Exception
        Specified by:
        createQuery in class com.day.cq.wcm.core.contentfinder.ViewHandler
        Throws:
        Exception