public final class ExportManager extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BEAN_NAME_AUTOMATIC_EXPORT_CONFIG_DAO |
Modifier and Type | Method and Description |
---|---|
static String |
doProcessExport(String strTableName,
List<String> listColumns,
int nXSLStylesheetId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Do process the export of a table of the database
|
static boolean |
doProcessExportIntoFile(String strOutputFilePath,
String strTableName,
List<String> listColumns,
int nXSLStylesheetId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Do process an export into a file of the file system.
|
static String |
getExportResult(fr.paris.lutece.portal.business.user.AdminUser admin)
Get the result of an export
|
static boolean |
hasExportInProcess(int nAdminId)
Check if an admin user has an export processing
|
static void |
registerAsynchronousExport(String strTableName,
List<String> listColumns,
int nXSLStylesheetId,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
fr.paris.lutece.portal.business.user.AdminUser admin)
Register an import to be generated asynchronously
|
public static final String BEAN_NAME_AUTOMATIC_EXPORT_CONFIG_DAO
public static String doProcessExport(String strTableName, List<String> listColumns, int nXSLStylesheetId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strTableName
- The name of the database table to exportlistColumns
- The list of columns to exportnXSLStylesheetId
- The id of the XSL export style sheet to use to
format data retrieved from the databaseplugin
- The plugin to get the pool ofpublic static void registerAsynchronousExport(String strTableName, List<String> listColumns, int nXSLStylesheetId, fr.paris.lutece.portal.service.plugin.Plugin plugin, fr.paris.lutece.portal.business.user.AdminUser admin)
strTableName
- The name of the database table to exportlistColumns
- The list of columns to exportnXSLStylesheetId
- The id of the XSL export style sheet to use to
format data retrieved from the databaseplugin
- The plugin to get the pool ofadmin
- The admin user that started the export, or null if it has
been started by a daemonpublic static boolean hasExportInProcess(int nAdminId)
nAdminId
- The id of the admin userpublic static String getExportResult(fr.paris.lutece.portal.business.user.AdminUser admin)
admin
- The admin user that started the exportpublic static boolean doProcessExportIntoFile(String strOutputFilePath, String strTableName, List<String> listColumns, int nXSLStylesheetId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strOutputFilePath
- The path of the file to save the export intostrTableName
- The name of the database table to exportlistColumns
- The list of columns to exportnXSLStylesheetId
- The id of the XSL export style sheet to use to
format data retrieved from the databaseplugin
- The plugin to get the pool ofdoProcessExport(String, List, int, Plugin)
Copyright © 2018 City of Paris. All rights reserved.