org.chorem.pollen.votecounting.services
Class ServiceExportImpl

java.lang.Object
  extended by org.chorem.pollen.votecounting.services.ServiceExportImpl
All Implemented Interfaces:
ServiceExport

public class ServiceExportImpl
extends Object
implements ServiceExport

Implémentation du service d'export.

Version:
$Id: ServiceExportImpl.java 2859 2010-02-09 13:50:24Z jruchaud $
Author:
boukhary, rannou

Constructor Summary
ServiceExportImpl()
          Constructor
 
Method Summary
 String executeExport(PollExportDTO pollExport)
          Export d'un sondage et de ses résultats au format XML.
 File executeFileExport(PollExportDTO pollExport)
          Export d'un sondage et de ses résultats au format XML.
 PollExportDTO executeImport(String filePath)
          Import d'un sondage et de ses résultats à partir d'un fichier XML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceExportImpl

public ServiceExportImpl()
Constructor

Method Detail

executeExport

public String executeExport(PollExportDTO pollExport)
Description copied from interface: ServiceExport
Export d'un sondage et de ses résultats au format XML. Le DTO contient le sondage et ses résultats s'ils existent.

Specified by:
executeExport in interface ServiceExport
Parameters:
pollExport - : DTO à exporter.
Returns:
le chemin du fichier exporté.

executeFileExport

public File executeFileExport(PollExportDTO pollExport)
Description copied from interface: ServiceExport
Export d'un sondage et de ses résultats au format XML. Le DTO contient le sondage et ses résultats s'ils existent.

Specified by:
executeFileExport in interface ServiceExport
Parameters:
pollExport - : DTO à exporter.
Returns:
le fichier exporté.

executeImport

public PollExportDTO executeImport(String filePath)
Description copied from interface: ServiceExport
Import d'un sondage et de ses résultats à partir d'un fichier XML.

Specified by:
executeImport in interface ServiceExport
Parameters:
filePath - chemin du fichier à importer.
Returns:
le sondage importé


Copyright © 2009-2010 CodeLutin. All Rights Reserved.