com.raritantechnologies.concept.classifier.userInterface
Class QueryRuleLoaderProcess
java.lang.Object
com.raritantechnologies.concept.classifier.userInterface.QueryRuleLoaderProcess
- All Implemented Interfaces:
- IConfigurable, IJobProcess
- public class QueryRuleLoaderProcess
- extends java.lang.Object
- implements IJobProcess
Loads a TopicSet and associated taxonomy into the Classifier Dashboard.
Uses an ITreeBuilder to build a tree. The output XML is loaded into the taxonomy
data area in the format used by the ClassifierDashboard.
A TreeTopicSetBuilder is then used to create a TopicSet.
Each topic is processed to create the association database rows linking the
tree path to the topic ID (matcher name).
The topic is then converted to an RQLMap using the TopicRQLMapBuilder and
stored using an IQueryResultSetWriter.
XML Configuration Template:
<JobProcess class="com.raritantechnologies.concept.classifier.dashboard.QueryRuleLoaderProcess"
taxonomyOutputPath="[ file path to taxonomies folder ]"
taxonomyName="[ name of the taxonomy to be loaded ]" >
<!-- Handles the Database association between taxonomy, ruleID and taxonomy path -->
<UniqueAssociationServletHandler>
</UniqueAssociationServletHandler>
<TreeBuilder>
</TreeBuilder>
<TreeTopicSetBuilder>
</TreeTopicSetBuilder>
<QueryResultSetWriter>
</QueryResultSetWriter>
</JobProcess>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryRuleLoaderProcess
public QueryRuleLoaderProcess()
executeJob
public void executeJob(java.lang.String[] args)
- Specified by:
executeJob in interface IJobProcess
executeJob
public void executeJob(RaritanPageContext rpc)
- Specified by:
executeJob in interface IJobProcess
getConfigurationXML
public java.lang.String getConfigurationXML()
- Specified by:
getConfigurationXML in interface IJobProcess
initialize
public void initialize(org.w3c.dom.Element elem)
- Description copied from interface:
IConfigurable
- Initializes the object from an XML tag or element.
This method is called by the Framework as part of the application initializtion.
see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory.
Configurable objects that are owned or contained by other configurable objects will be initialized
in by the parent object.
- Specified by:
initialize in interface IJobProcess