|
SMILA (incubation) API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.smila.search.api.internal.SearchServiceImpl
public class SearchServiceImpl
SearchService implementation to be used as a Declarative Service. The connection to a WorkflowProcessor is also setup using a DS service reference.
Field Summary |
---|
Fields inherited from interface org.eclipse.smila.search.api.SearchService |
---|
NAMESPACE_SEARCH, TAG_DETAILS, TAG_ERROR, TAG_MESSAGE, TAG_SEARCHRESULT, TAG_WORKFLOWNAME |
Constructor Summary | |
---|---|
SearchServiceImpl()
create instance. |
Method Summary | |
---|---|
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). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SearchServiceImpl()
Method Detail |
---|
public Record search(java.lang.String workflowName, Record query) throws ProcessingException
search
in interface SearchService
workflowName
- 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 SearchService
workflowName
- 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 SearchService
workflowName
- 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
|
SMILA (incubation) API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |