ch.tatool.app.export
Class DataExportServiceImpl

java.lang.Object
  extended by ch.tatool.app.export.DataExportServiceImpl
All Implemented Interfaces:
DataExportService

public class DataExportServiceImpl
extends Object
implements DataExportService

Implementation of the ExporterService

Author:
Michael Ruflin

Field Summary
 
Fields inherited from interface ch.tatool.app.export.DataExportService
PROPERTY_EXPORT_INCREMENTAL, PROPERTY_EXPORTER_CLASS, PROPERTY_LAST_EXPORT_TIMESTAMP, PROPERTY_LAST_EXPORTED_SESSION
 
Constructor Summary
DataExportServiceImpl()
           
 
Method Summary
 boolean containsPendingExportData(Module module, String exporterKey)
          Returns whether some or all of the data in the module is still due to be exported
 boolean exportConfigured(Module module, String exporterKey)
          Can the module be exported?
 String exportData(Component parent, Module module, String exporterKey)
          Exports the data.
 DataService getDataService()
           
 Date getLastExportDate(Module module, String exporterKey)
          Returns the date when the last data was exported.
 MessagesImpl getMessages()
           
 void setDataService(DataService dataService)
           
 void setMessages(MessagesImpl messages)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataExportServiceImpl

public DataExportServiceImpl()
Method Detail

exportConfigured

public boolean exportConfigured(Module module,
                                String exporterKey)
Description copied from interface: DataExportService
Can the module be exported? Currently an exporter class needs to be specified in order to allow exporting the data.

Specified by:
exportConfigured in interface DataExportService

containsPendingExportData

public boolean containsPendingExportData(Module module,
                                         String exporterKey)
Description copied from interface: DataExportService
Returns whether some or all of the data in the module is still due to be exported

Specified by:
containsPendingExportData in interface DataExportService

getLastExportDate

public Date getLastExportDate(Module module,
                              String exporterKey)
Description copied from interface: DataExportService
Returns the date when the last data was exported.

Specified by:
getLastExportDate in interface DataExportService

exportData

public String exportData(Component parent,
                         Module module,
                         String exporterKey)
Description copied from interface: DataExportService
Exports the data.

Specified by:
exportData in interface DataExportService

getDataService

public DataService getDataService()

setDataService

public void setDataService(DataService dataService)

setMessages

public void setMessages(MessagesImpl messages)

getMessages

public MessagesImpl getMessages()


Copyright © 2012. All Rights Reserved.