com.raritantechnologies.searchApp.reporting
Class FileReporter

java.lang.Object
  extended bycom.raritantechnologies.searchApp.reporting.FileReporter
All Implemented Interfaces:
IConfigurable, IReporter

public class FileReporter
extends java.lang.Object
implements IReporter

Base class for reporting job processes that write output to a file.


Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
FileReporter(java.lang.String outputFile)
           
 
Method Summary
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 void saveData(java.lang.String data, ILoginInfo userInfo)
          Saves the data.
 void saveData(java.lang.String data, java.lang.String eMail)
          This is needed for situations (such as Alert processing), where an email address may not be the one that is in the login process, this method allows the email message to be directed to a specific email address.
 void saveFile(java.lang.String fileData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileReporter

public FileReporter(java.lang.String outputFile)
Method Detail

saveFile

public void saveFile(java.lang.String fileData)

saveData

public void saveData(java.lang.String data,
                     ILoginInfo userInfo)
Description copied from interface: IReporter
Saves the data.

Specified by:
saveData in interface IReporter
Parameters:
data - The data to be saved/sent by the reporter.
userInfo - User for whom the data is to be saved.

saveData

public void saveData(java.lang.String data,
                     java.lang.String eMail)
Description copied from interface: IReporter
This is needed for situations (such as Alert processing), where an email address may not be the one that is in the login process, this method allows the email message to be directed to a specific email address.

Specified by:
saveData in interface IReporter
Parameters:
data - The data to be saved/sent by the reporter.

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 IConfigurable