Modifier and Type | Field and Description |
---|---|
static int |
STATUS_FINISHED |
static int |
STATUS_QUEUED |
static int |
STATUS_WORKING |
Constructor and Description |
---|
RunnableExportService(String strTableName,
List<String> listColumns,
int nXSLStylesheetId,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
String strExportKey)
Creates a new export to run in a dedicated thread
|
Modifier and Type | Method and Description |
---|---|
String |
getExportedFileName()
Get the name of the file generated by this export service
|
String |
getExportedFileRelativeUrl()
Get the URL of the file generated by this export service.
|
int |
getServiceStatus()
Get the status of the service.
|
void |
run() |
public static final int STATUS_QUEUED
public static final int STATUS_WORKING
public static final int STATUS_FINISHED
public RunnableExportService(String strTableName, List<String> listColumns, int nXSLStylesheetId, fr.paris.lutece.portal.service.plugin.Plugin plugin, String strExportKey)
strTableName
- The name of table to exportlistColumns
- The list of columns to exportnXSLStylesheetId
- The id of the stylesheet to apply to the data
retrieved from the database. If the id is 0, then the row XML
is returnedplugin
- The plugin to get the pool ofstrExportKey
- The key of the export. Only one export can be run at
the same time for a given keypublic int getServiceStatus()
STATUS_QUEUED
if the serviced has not been started,
STATUS_WORKING
if it is executing, or
STATUS_FINISHED
if its execution has ended.public String getExportedFileName()
public String getExportedFileRelativeUrl()
Copyright © 2018 City of Paris. All rights reserved.