com.raritantechnologies.searchApp.database
Class JobProcessSaveAction

java.lang.Object
  extended bycom.raritantechnologies.searchApp.database.JobProcessSaveAction
All Implemented Interfaces:
IConfigurable, ISaveAction

public class JobProcessSaveAction
extends java.lang.Object
implements ISaveAction

Triggers an IJobProcess execution on a doAction( ) and/or a doUpdate call.

XML Configuration Template:
   <SaveAction class="com.raritantechnologies.searchApp.database.JobProcessSaveAction" >

     <!-- One or more page context parameters that will trigger execution of the JobProcess -->
     <ActionParameters>
        <Param ID="[ name of the request parameter ]" value="[ value of parameter ]" executeOn="[ true(default) | false ]" >

        <Param ID="[ name of the request parameter ]" executeOn="[ true(default) | false ]" >
          <Comparator class="[ class of com.raritantechnologies.utils.comparators.IComparator ]" >

          </Comparator>
        </Param>

     </ActionParameters>

     <JobProcess class="[ class of com.raritantechnologies.searchApp.scheduler.IJobProcess ]" >

     </JobProcess>

  </SaveAction>


Constructor Summary
JobProcessSaveAction()
           
 
Method Summary
 boolean doAction(RaritanPageContext pageContext)
          Determines if the SaveAction should be executed.
 void doUpdate(RaritanPageContext pageContext)
          Executes the save action.
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobProcessSaveAction

public JobProcessSaveAction()
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 ISaveAction

doAction

public boolean doAction(RaritanPageContext pageContext)
Description copied from interface: ISaveAction
Determines if the SaveAction should be executed.

Specified by:
doAction in interface ISaveAction

doUpdate

public void doUpdate(RaritanPageContext pageContext)
Description copied from interface: ISaveAction
Executes the save action.

Specified by:
doUpdate in interface ISaveAction