public class SearchEntityProvider
extends org.sakaiproject.entitybroker.util.AbstractEntityProvider
implements org.sakaiproject.entitybroker.entityprovider.capabilities.ActionsExecutable, org.sakaiproject.entitybroker.entityprovider.capabilities.Outputable, org.sakaiproject.entitybroker.entityprovider.capabilities.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(org.sakaiproject.entitybroker.EntityReference ref,
org.sakaiproject.entitybroker.entityprovider.search.Search search)
Simple search method
|
void |
setSearchIndexBuilder(org.sakaiproject.search.api.SearchIndexBuilder searchIndexBuilder) |
void |
setSearchService(org.sakaiproject.search.api.SearchService searchService) |
void |
setSiteService(org.sakaiproject.site.api.SiteService siteService) |
void |
setUserDirectoryService(org.sakaiproject.user.api.UserDirectoryService userDirectoryService) |
public String getEntityPrefix()
getEntityPrefix in interface org.sakaiproject.entitybroker.entityprovider.EntityProviderpublic String[] getHandledOutputFormats()
getHandledOutputFormats in interface org.sakaiproject.entitybroker.entityprovider.capabilities.Outputablepublic List<SearchEntityProvider.SearchResultEntity> search(org.sakaiproject.entitybroker.EntityReference ref, org.sakaiproject.entitybroker.entityprovider.search.Search search)
ref - search - public Set<String> getTools()
public void setSearchService(org.sakaiproject.search.api.SearchService searchService)
public void setSiteService(org.sakaiproject.site.api.SiteService siteService)
public void setUserDirectoryService(org.sakaiproject.user.api.UserDirectoryService userDirectoryService)
public void setSearchIndexBuilder(org.sakaiproject.search.api.SearchIndexBuilder searchIndexBuilder)
Copyright © 2003-2016 Sakai Project. All Rights Reserved.