public class IndexerServiceImpl extends Object implements IndexerService
| Constructor and Description |
|---|
IndexerServiceImpl(com.googlecode.fascinator.api.indexer.Indexer indexer,
org.apache.tapestry5.services.ApplicationStateManager asm) |
| Modifier and Type | Method and Description |
|---|---|
void |
annotate(String oid,
String pid) |
void |
annotateRemove(String oid) |
void |
annotateRemove(String oid,
String pid) |
void |
annotateSearch(com.googlecode.fascinator.api.indexer.SearchRequest request,
OutputStream result) |
void |
commit() |
String |
getId() |
List<Object> |
getJsonObjectWithField(String fieldName,
String fieldValue) |
String |
getName() |
com.googlecode.fascinator.api.PluginDescription |
getPluginDetails()
Gets a PluginDescription object relating to this plugin.
|
void |
index(String oid) |
void |
index(String oid,
String pid) |
void |
init(File jsonFile) |
void |
init(String jsonString) |
void |
remove(String oid) |
void |
remove(String oid,
String pid) |
void |
search(com.googlecode.fascinator.api.indexer.SearchRequest request,
OutputStream result) |
void |
search(com.googlecode.fascinator.api.indexer.SearchRequest request,
OutputStream result,
String format) |
void |
searchByIndex(com.googlecode.fascinator.api.indexer.SearchRequest request,
OutputStream response,
String indexName) |
void |
shutdown() |
public IndexerServiceImpl(com.googlecode.fascinator.api.indexer.Indexer indexer,
org.apache.tapestry5.services.ApplicationStateManager asm)
public void index(String oid) throws com.googlecode.fascinator.api.indexer.IndexerException
index in interface com.googlecode.fascinator.api.indexer.Indexercom.googlecode.fascinator.api.indexer.IndexerExceptionpublic void index(String oid, String pid) throws com.googlecode.fascinator.api.indexer.IndexerException
index in interface com.googlecode.fascinator.api.indexer.Indexercom.googlecode.fascinator.api.indexer.IndexerExceptionpublic void commit()
commit in interface com.googlecode.fascinator.api.indexer.Indexerpublic void annotate(String oid, String pid) throws com.googlecode.fascinator.api.indexer.IndexerException
annotate in interface com.googlecode.fascinator.api.indexer.Indexercom.googlecode.fascinator.api.indexer.IndexerExceptionpublic void annotateSearch(com.googlecode.fascinator.api.indexer.SearchRequest request,
OutputStream result)
throws com.googlecode.fascinator.api.indexer.IndexerException
annotateSearch in interface com.googlecode.fascinator.api.indexer.Indexercom.googlecode.fascinator.api.indexer.IndexerExceptionpublic void annotateRemove(String oid) throws com.googlecode.fascinator.api.indexer.IndexerException
annotateRemove in interface com.googlecode.fascinator.api.indexer.Indexercom.googlecode.fascinator.api.indexer.IndexerExceptionpublic void annotateRemove(String oid, String pid) throws com.googlecode.fascinator.api.indexer.IndexerException
annotateRemove in interface com.googlecode.fascinator.api.indexer.Indexercom.googlecode.fascinator.api.indexer.IndexerExceptionpublic void remove(String oid) throws com.googlecode.fascinator.api.indexer.IndexerException
remove in interface com.googlecode.fascinator.api.indexer.Indexercom.googlecode.fascinator.api.indexer.IndexerExceptionpublic void remove(String oid, String pid) throws com.googlecode.fascinator.api.indexer.IndexerException
remove in interface com.googlecode.fascinator.api.indexer.Indexercom.googlecode.fascinator.api.indexer.IndexerExceptionpublic void search(com.googlecode.fascinator.api.indexer.SearchRequest request,
OutputStream result)
throws com.googlecode.fascinator.api.indexer.IndexerException
search in interface com.googlecode.fascinator.api.indexer.Indexercom.googlecode.fascinator.api.indexer.IndexerExceptionpublic String getId()
getId in interface com.googlecode.fascinator.api.Pluginpublic String getName()
getName in interface com.googlecode.fascinator.api.Pluginpublic com.googlecode.fascinator.api.PluginDescription getPluginDetails()
getPluginDetails in interface com.googlecode.fascinator.api.Pluginpublic void init(File jsonFile) throws com.googlecode.fascinator.api.PluginException
init in interface com.googlecode.fascinator.api.Plugincom.googlecode.fascinator.api.PluginExceptionpublic void shutdown()
throws com.googlecode.fascinator.api.PluginException
shutdown in interface com.googlecode.fascinator.api.Plugincom.googlecode.fascinator.api.PluginExceptionpublic void init(String jsonString) throws com.googlecode.fascinator.api.PluginException
init in interface com.googlecode.fascinator.api.Plugincom.googlecode.fascinator.api.PluginExceptionpublic void searchByIndex(com.googlecode.fascinator.api.indexer.SearchRequest request,
OutputStream response,
String indexName)
throws com.googlecode.fascinator.api.indexer.IndexerException
searchByIndex in interface com.googlecode.fascinator.api.indexer.Indexercom.googlecode.fascinator.api.indexer.IndexerExceptionpublic void search(com.googlecode.fascinator.api.indexer.SearchRequest request,
OutputStream result,
String format)
throws com.googlecode.fascinator.api.indexer.IndexerException
search in interface com.googlecode.fascinator.api.indexer.Indexercom.googlecode.fascinator.api.indexer.IndexerExceptionpublic List<Object> getJsonObjectWithField(String fieldName, String fieldValue) throws com.googlecode.fascinator.api.indexer.IndexerException
getJsonObjectWithField in interface com.googlecode.fascinator.api.indexer.Indexercom.googlecode.fascinator.api.indexer.IndexerExceptionCopyright © 2009-2015. All Rights Reserved.