public class SearchServiceImpl extends java.lang.Object implements SearchService
NAMESPACE_SEARCH, TAG_DETAILS, TAG_ERROR, TAG_MESSAGE, TAG_SEARCHRESULT, TAG_WORKFLOWNAME| Constructor and Description |
|---|
SearchServiceImpl()
create instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(ComponentContext context) |
protected void |
deactivate(ComponentContext context)
OSGi Declarative Services service deactivation method.
|
Record |
search(java.lang.String workflowName,
Record query)
Execute a query using the named workflow and create a SearchResult from the workflow result.
|
org.w3c.dom.Document |
searchAsXml(java.lang.String workflowName,
Record query)
Execute a query using the named workflow and return the search result as an XML document.
|
java.lang.String |
searchAsXmlString(java.lang.String workflowName,
Record query)
Execute a query using the named workflow and return the search result as an XML string.
|
void |
setBlackboardFactory(BlackboardFactory factory)
set blackboard factory reference (used by DS).
|
void |
setProcessor(WorkflowProcessor processor)
set workflow processor reference (used by DS).
|
void |
unsetBlackboardFactory(BlackboardFactory factory)
remove blackboard factory reference (used by DS).
|
void |
unsetProcessor(WorkflowProcessor processor)
remove workflow processor reference (used by DS).
|
public Record search(java.lang.String workflowName, Record query) throws ProcessingException
search in interface SearchServiceworkflowName - name of workflow to process the search.query - query object describing the search.ProcessingException - error while processing the request or preparing the input message or search result.public org.w3c.dom.Document searchAsXml(java.lang.String workflowName,
Record query)
throws javax.xml.parsers.ParserConfigurationException
searchAsXml in interface SearchServiceworkflowName - name of workflow to process the search.query - query object describing the search.javax.xml.parsers.ParserConfigurationException - error creating the XML result.org.eclipse.smila.search.api.SearchService#xmlSearch(java.lang.String,
org.eclipse.smila.datamodel.record.Record)public java.lang.String searchAsXmlString(java.lang.String workflowName,
Record query)
throws javax.xml.parsers.ParserConfigurationException
searchAsXmlString in interface SearchServiceworkflowName - name of workflow to process the search.query - query object describing the search.javax.xml.parsers.ParserConfigurationException - error creating the XML result.org.eclipse.smila.search.api.SearchService#searchAsXmlString(java.lang.String,
org.eclipse.smila.datamodel.record.Record)protected void activate(ComponentContext context)
protected void deactivate(ComponentContext context)
context - OSGi service component context.public void setProcessor(WorkflowProcessor processor)
processor - workflow processorpublic void unsetProcessor(WorkflowProcessor processor)
processor - workflow processorpublic void setBlackboardFactory(BlackboardFactory factory)
factory - blackboard factorypublic void unsetBlackboardFactory(BlackboardFactory factory)
factory - blackboard factory