public class SearchServiceImpl extends Object implements SearchService
Modifier and Type | Class and Description |
---|---|
static interface |
SearchServiceImpl.Config |
Constructor and Description |
---|
SearchServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
closeResolver(org.apache.sling.api.resource.ResourceResolver resolver)
Closes the resource resolver if appropriate
|
org.apache.sling.api.resource.ResourceResolver |
getResourceResolver(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.
|
void |
init(SearchServiceImpl.Config config) |
public void init(SearchServiceImpl.Config config)
public org.apache.sling.api.resource.ResourceResolver getResourceResolver(org.apache.sling.api.SlingHttpServletRequest request)
SearchService
getResourceResolver
in interface SearchService
request
- the request from which to retrieve the request resource
resolver (if service user not configured)public void closeResolver(org.apache.sling.api.resource.ResourceResolver resolver)
SearchService
closeResolver
in interface SearchService
resolver
- the resource resolver used in searchCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.