Package org.openbravo.service.db
Class ExportClientProcess
- java.lang.Object
-
- org.openbravo.service.db.ExportClientProcess
-
- All Implemented Interfaces:
Process
public class ExportClientProcess extends Object implements Process
The export client process is called from the ui. It exports all the data from one client using a specific dataset. It again calls theDataExportService
for the actual export.- Author:
- mtaal
-
-
Field Summary
Fields Modifier and Type Field Description static String
CLIENT_DATA_FILE_NAME
The filename of the export file with client data.static String
EXPORT_DIR_NAME
The directory within WEB-INF in which the export file is placed.-
Fields inherited from interface org.openbravo.scheduling.Process
COMPLETE, ERROR, EXECUTION_ID, KILLED, MISFIRED, PREVENT_CONCURRENT_EXECUTIONS, PROCESS_ID, PROCESS_NAME, PROCESSING, SCHEDULED, SUCCESS, SYSTEM_RESTART, UNSCHEDULED
-
-
Constructor Summary
Constructors Constructor Description ExportClientProcess()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(ProcessBundle bundle)
Executes the export process.static File
getExportDir()
Returns the export file into which the xml is written or from the export can be read.
-
-
-
Field Detail
-
CLIENT_DATA_FILE_NAME
public static final String CLIENT_DATA_FILE_NAME
The filename of the export file with client data.- See Also:
- Constant Field Values
-
EXPORT_DIR_NAME
public static final String EXPORT_DIR_NAME
The directory within WEB-INF in which the export file is placed.- See Also:
- Constant Field Values
-
-
Method Detail
-
getExportDir
public static File getExportDir()
Returns the export file into which the xml is written or from the export can be read.
-
execute
public void execute(ProcessBundle bundle) throws Exception
Executes the export process. The expected parameters in the bundle are clientId (denoting the client) and fileLocation giving the full path location of the file in which the data for the export should go.
-
-