|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectWorker
com.raritantechnologies.federated.RaritanWorker
Abstract base class for Raritan Technologies Verity Federated Workers.
Does mapping from ConfigurationManager etc and Federated API to the Raritan
IQueryProcessor layer. Z39.50, HTML, SOAP and SQL are all QueryProcessors.
Handles Federated Parameters to create consolidated UI - connects these to the SearchFieldMap.
Also handles mapping the IResultSet into the Verity Federated ResultSet.
Conversion is done using an XSLT which is referenced by the Federated Configuration XML for each
SearchSource. XSL Transforms for each SearchSource are obtained from the
FederatedConfigurationManager.
Security will be handled by Federated Parameters passed from the Raritan User Interface. The parameters are then passed to the ISecurityManager by RaritanWorker to see if the user can access the SearchSources that this worker uses. Extensions of RaritanWorker (eg HTMLWorker, SOAPWorker, etc) handle the creation of the IQueryProcessor and loading any special modules that are needed.
Verity Configuration Schema
| Field Summary | |
protected IQueryProcessor |
theQueryProcessor
|
protected SearchSource[] |
theSearchSource
|
| Constructor Summary | |
RaritanWorker()
|
|
| Method Summary | |
protected void |
doSetCookie(WorkerRequest workerRequest,
IResultSet frs)
|
protected abstract SearchSource |
getSearchSource(ISearchFieldMap sfMap,
java.lang.String sourceName)
returns the SearchSource appropriate to the RaritanWorker subclass. |
protected abstract IXMLSearchSourceFactory |
getSearchSourceFactory()
|
void |
handleRequest(WorkerRequest workerRequest)
Translates workerrequest into HashMap which it passes to the IQueryProcessor Uses its SearchSource and the singleton ISearchFieldMap as params to executeQuery( ) Maps result XML to req.getResultSet( ) |
java.lang.Object |
handleTargetedRequest(TargetedRequest req)
|
void |
init(ReadAttributes attribs,
ReadAttributes globalEnv)
Uses the SearchSource "sourceName" contained in the Federated Config.XML to find the SearchSource from the ConfigurationManager SearchFieldMap. |
void |
setCookie(WorkerRequest workerRequest,
java.lang.String cookieVal)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected SearchSource[] theSearchSource
protected IQueryProcessor theQueryProcessor
| Constructor Detail |
public RaritanWorker()
| Method Detail |
public void init(ReadAttributes attribs,
ReadAttributes globalEnv)
throws WorkerCreationException
WorkerCreationException
protected abstract SearchSource getSearchSource(ISearchFieldMap sfMap,
java.lang.String sourceName)
protected abstract IXMLSearchSourceFactory getSearchSourceFactory()
public void handleRequest(WorkerRequest workerRequest)
public java.lang.Object handleTargetedRequest(TargetedRequest req)
throws TargetedRequestException
TargetedRequestException
protected void doSetCookie(WorkerRequest workerRequest,
IResultSet frs)
public void setCookie(WorkerRequest workerRequest,
java.lang.String cookieVal)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||