com.raritantechnologies.searchApp.reporting
Class NewResultsProcess

java.lang.Object
  extended bycom.raritantechnologies.searchApp.reporting.NewResultsProcess
All Implemented Interfaces:
IConfigurable, IJobProcess

public class NewResultsProcess
extends java.lang.Object
implements IJobProcess

Job Process that retrieves a set of stored QueryResultBeans, re-executes the queries against the SearchSource associated with each QueryResultBean, with a configurable date limit to restrict the results to new results. The stored QueryResultBeans are retrieved using an IQueryResultSetReader. The new results can be processed with an optional IResultSetProcessor. After processing, the query and result metadata and/or statitistics can be resaved using an IQueryResultSetWriter.

Used by NewResultsReporter to generate a latest results report for a set of saved QueryResultBeans.

XML Configuration Template:
    <JobProcess processClass="com.raritantechnologies.searchApp.reporting.NewResultsProcess"
                   userName="" password="" >

    <QueryResultSetReader class="[a com.raritantechnologies.searchApp.query.IQueryResultSetReader class]" >
       <!-- details needed by QueryResultSetReader initializer -->
    </QueryResultSetReader>

    <QueryResultSetWriter class="[a com.raritantechnologies.searchApp.query.IQueryResultSetWriter class]" >
       <!-- details needed by QueryResultSetReader initializer -->
    </QueryResultSetWriter>

    <ResultSetProcessor class="[ an com.raritantechnologies.searchApp.IResultSetProcessor class]" >
         <!-- information needed by ResultSetProcessor class . . . -->
     </ResultSetProcessor>

    <DateSearchField dateFieldID="someDateField" dateOpField="MOD_someDateField" dateOpVal="<=" />

   </JobProcess>
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
NewResultsProcess()
           
 
Method Summary
 void executeJob(RaritanPageContext rpc)
           
 void executeJob(java.lang.String[] args)
           
 java.lang.String getConfigurationXML()
           
protected  IResultSet getNewResults(QueryResultBean qrb)
           
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 void setQueryResultSetReader(IQueryResultSetReader queryResultReader)
           
 void setResultSetProcessor(IResultSetProcessor resSetProcessor)
           
 void setSearchParams(OrderedMap searchParams)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewResultsProcess

public NewResultsProcess()
Method Detail

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

executeJob

public void executeJob(RaritanPageContext rpc)
Specified by:
executeJob in interface IJobProcess

executeJob

public void executeJob(java.lang.String[] args)
Specified by:
executeJob in interface IJobProcess

getNewResults

protected IResultSet getNewResults(QueryResultBean qrb)

setQueryResultSetReader

public void setQueryResultSetReader(IQueryResultSetReader queryResultReader)

setResultSetProcessor

public void setResultSetProcessor(IResultSetProcessor resSetProcessor)

setSearchParams

public void setSearchParams(OrderedMap searchParams)

getConfigurationXML

public java.lang.String getConfigurationXML()
Specified by:
getConfigurationXML in interface IJobProcess