Class SearchServiceImpl

  • All Implemented Interfaces:
    org.apache.sling.api.request.SlingRequestListener, SearchService

    public class SearchServiceImpl
    extends Object
    implements SearchService, org.apache.sling.api.request.SlingRequestListener
    Implementation of the SearchService
    • Constructor Detail

      • SearchServiceImpl

        public SearchServiceImpl​(org.apache.sling.api.resource.ResourceResolverFactory factory,
                                 SearchServiceImpl.Config config)
    • Method Detail

      • getResourceResolver

        public org.apache.sling.api.resource.ResourceResolver getResourceResolver​(org.apache.sling.api.SlingHttpServletRequest request)
        Description copied from interface: SearchService
        Gets either the service user resource resolver of the request resource resolver depending if the service user is configured.
        Specified by:
        getResourceResolver in interface SearchService
        Parameters:
        request - the request from which to retrieve the request resource resolver (if service user not configured)
        Returns:
        the appropriate resource resolvers
      • onEvent

        public void onEvent​(org.apache.sling.api.request.SlingRequestEvent sre)
        Specified by:
        onEvent in interface org.apache.sling.api.request.SlingRequestListener