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)
SearchServicegetResourceResolver in interface SearchServicerequest - 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)
SearchServicecloseResolver in interface SearchServiceresolver - the resource resolver used in searchCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.