public class HelpSearchService extends Object implements IHelpSearch, org.springframework.context.ApplicationContextAware
IHelpSearch.IHelpSearchListener| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Release/update resources upon destruction.
|
static HelpSearchService |
getInstance() |
void |
indexHelpModule(HelpModule helpModule)
Index all HTML files within the content of the help module.
|
void |
init()
Initialize the index writer.
|
void |
search(String words,
Collection<IHelpSet> helpSets,
IHelpSearch.IHelpSearchListener listener)
Performs a search query using the specified string on each registered query handler, calling
the listener for each set of results.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext appContext)
Application context is needed to iterate over help content resources.
|
void |
setIndexDirectoryPath(String path)
Setter for index directory path (injected by IOC container).
|
void |
unindexHelpModule(HelpModule helpModule)
Removes the index for a help module.
|
public static HelpSearchService getInstance()
public void setIndexDirectoryPath(String path)
path - The index directory path (may be null or empty).public void indexHelpModule(HelpModule helpModule)
indexHelpModule in interface IHelpSearchhelpModule - Help module to be indexed.public void unindexHelpModule(HelpModule helpModule)
unindexHelpModule in interface IHelpSearchhelpModule - Help module whose index is to be removed.public void search(String words, Collection<IHelpSet> helpSets, IHelpSearch.IHelpSearchListener listener)
search in interface IHelpSearchwords - List of words to be located.helpSets - Help sets to be searchedlistener - Listener for search results.public void init()
throws IOException
IOException - Unspecified IO exception.public void destroy()
public void setApplicationContext(org.springframework.context.ApplicationContext appContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.