public class SearchEntityProvider extends AbstractEntityProvider implements ActionsExecutable, Outputable, Describeable
| Modifier and Type | Class and Description |
|---|---|
class |
SearchEntityProvider.SearchResultEntity
A wrapper to customise the result sent through EntityBroker
Wraps a
SearchResult to avoid issues with the SearchResult.getId()
method and EntityReference.checkPrefixId(String, String). |
developerHelperServiceACTION_METHOD_SUFFIXALL_KNOWN_FORMATS, ATOM, ATOM_EXTENSIONS, ATOM_MIME_TYPE, FORM, FORM_EXTENSIONS, FORM_MIME_TYPE, HTML, HTML_EXTENSIONS, HTML_MIME_TYPE, JSON, JSON_EXTENSIONS, JSON_MIME_TYPE, JSONP, JSONP_EXTENSIONS, JSONP_MIME_TYPE, RSS, RSS_EXTENSIONS, RSS_MIME_TYPE, TXT, TXT_EXTENSIONS, TXT_MIME_TYPE, UTF_8, XML, XML_EXTENSIONS, XML_MIME_TYPE| Constructor and Description |
|---|
SearchEntityProvider() |
| Modifier and Type | Method and Description |
|---|---|
String |
getEntityPrefix()
Name of the service, here "search"
|
String[] |
getHandledOutputFormats()
Handled formats, such as JSon and XML
|
Set<String> |
getTools()
Get the list of tools handled by the search engine.
|
List<SearchEntityProvider.SearchResultEntity> |
search(EntityReference ref,
Search search)
Simple search method
|
void |
setSearchIndexBuilder(SearchIndexBuilder searchIndexBuilder) |
void |
setSearchService(SearchService searchService) |
void |
setSiteService(SiteService siteService) |
void |
setUserDirectoryService(UserDirectoryService userDirectoryService) |
afterPropertiesSet, destroy, setDeveloperHelperService, setEntityProviderManagerpublic String getEntityPrefix()
getEntityPrefix in interface EntityProviderpublic String[] getHandledOutputFormats()
getHandledOutputFormats in interface Outputablepublic List<SearchEntityProvider.SearchResultEntity> search(EntityReference ref, Search search)
ref - search - public Set<String> getTools()
public void setSearchService(SearchService searchService)
public void setSiteService(SiteService siteService)
public void setUserDirectoryService(UserDirectoryService userDirectoryService)
public void setSearchIndexBuilder(SearchIndexBuilder searchIndexBuilder)
Copyright © 2003–2016 Sakai Project. All rights reserved.