Class SearchServiceImpl
- java.lang.Object
-
- org.apache.sling.cms.reference.impl.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSearchServiceImpl.Config
-
Constructor Summary
Constructors Constructor Description SearchServiceImpl(org.apache.sling.api.resource.ResourceResolverFactory factory, SearchServiceImpl.Config config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.sling.api.resource.ResourceResolvergetResourceResolver(org.apache.sling.api.SlingHttpServletRequest request)Gets either the service user resource resolver of the request resource resolver depending if the service user is configured.voidonEvent(org.apache.sling.api.request.SlingRequestEvent sre)
-
-
-
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:SearchServiceGets either the service user resource resolver of the request resource resolver depending if the service user is configured.- Specified by:
getResourceResolverin interfaceSearchService- 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:
onEventin interfaceorg.apache.sling.api.request.SlingRequestListener
-
-