fr.paris.lutece.plugins.form.service.export
Class AbstractExportService

java.lang.Object
  extended by fr.paris.lutece.plugins.form.service.export.AbstractExportService
All Implemented Interfaces:
IExportService
Direct Known Subclasses:
FormExportService, FormSubmitExportService

public abstract class AbstractExportService
extends java.lang.Object
implements IExportService

AbstractFormExportService


Field Summary
protected static java.lang.String CONSTANT_CSV
           
protected static java.lang.String SQL_FILTER_ENTRY_POS
           
protected static java.lang.String XSL_UNIQUE_PREFIX_ID
           
 
Constructor Summary
AbstractExportService()
           
 
Method Summary
abstract  void doExport(Form form, java.util.List<FormSubmit> listFormSubmit, java.lang.String strFolderPath, ExportFormat exportFormat, java.lang.String strEncoding, java.lang.StringBuilder sbLog, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Do export the form responses
 void doExport(Form form, java.lang.StringBuilder sbLog, ExportFormat exportFormat, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Do export the responses of the given form
 java.lang.String getKey()
          Get the key
 java.lang.String getTitle(java.util.Locale locale)
          Get the title
 void setKey(java.lang.String strKey)
          Set the key
 void setTitleI18nKey(java.lang.String strTitleI18nKey)
          Set the title i18n key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SQL_FILTER_ENTRY_POS

protected static final java.lang.String SQL_FILTER_ENTRY_POS
See Also:
Constant Field Values

XSL_UNIQUE_PREFIX_ID

protected static final java.lang.String XSL_UNIQUE_PREFIX_ID

CONSTANT_CSV

protected static final java.lang.String CONSTANT_CSV
See Also:
Constant Field Values
Constructor Detail

AbstractExportService

public AbstractExportService()
Method Detail

doExport

public abstract void doExport(Form form,
                              java.util.List<FormSubmit> listFormSubmit,
                              java.lang.String strFolderPath,
                              ExportFormat exportFormat,
                              java.lang.String strEncoding,
                              java.lang.StringBuilder sbLog,
                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Do export the form responses

Parameters:
form - the form
listFormSubmit - the list of form submits
strFolderPath - the folder path
exportFormat - the export format
strEncoding - the encoding
sbLog - the log
plugin - the plugin

getKey

public java.lang.String getKey()
Get the key

Specified by:
getKey in interface IExportService
Returns:
the key

setKey

public void setKey(java.lang.String strKey)
Set the key

Specified by:
setKey in interface IExportService
Parameters:
strKey - the key

getTitle

public java.lang.String getTitle(java.util.Locale locale)
Get the title

Specified by:
getTitle in interface IExportService
Parameters:
locale - the locale
Returns:
the title

setTitleI18nKey

public void setTitleI18nKey(java.lang.String strTitleI18nKey)
Set the title i18n key

Specified by:
setTitleI18nKey in interface IExportService
Parameters:
strTitleI18nKey - the i18n key

doExport

public void doExport(Form form,
                     java.lang.StringBuilder sbLog,
                     ExportFormat exportFormat,
                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Do export the responses of the given form

Specified by:
doExport in interface IExportService
Parameters:
form - the form
sbLog - the log
exportFormat - the export format
plugin - the plugin


Copyright © 2012 Mairie de Paris. All Rights Reserved.