public class ExportConfig
extends java.lang.Object
ExportService. If specific setter are not called, default values
will be set (mentioned at setter methods). The export script is a mandatory parameter for export, so do not forget to
call setScript(ImpExResource) method.| Modifier and Type | Class and Description |
|---|---|
static class |
ExportConfig.ValidationMode
Represents the validation modes available for export.
|
| Constructor and Description |
|---|
ExportConfig() |
| Modifier and Type | Method and Description |
|---|---|
char |
getCommentCharacter()
Gets the used comment character for commenting lines within the export csv files.
|
java.lang.String |
getEncoding()
Gets the encoding used for creating export files.
|
java.lang.String |
getExportedDataCode()
Gets the code of the export media (containing the data).
|
java.lang.String |
getExportedMediaCode()
Gets the code of the export media (containing the media files).
|
char |
getFieldSeparator()
Gets the used field separator for separating the fields within the export csv files.
|
char |
getQuoteCharacter()
Gets the used field separator for escaping the fields within the export csv files.
|
ImpExResource |
getScript()
Gets the configured export script.
|
EmployeeModel |
getSessionUser() |
ExportConfig.ValidationMode |
getValidationMode()
Gets the configured validation mode of export.
|
boolean |
isFailOnError()
Will the export fail on an error or tries to continue? Default is true.
|
boolean |
isSingleFile()
Will the exported data be located within one csv file or separated using one file per header.
|
boolean |
isSynchronous()
Will the export be executed synchronous? Default is true.
|
void |
setCommentCharacter(char commentCharacter)
Sets character for commenting lines within the export csv files.
|
void |
setEncoding(java.lang.String encoding)
Sets the encoding used for export file creation.
|
void |
setExportedDataCode(java.lang.String exportedDataCode)
Sets the code of the export media (containing the data).
|
void |
setExportedMediaCode(java.lang.String exportedMediaCode)
Sets the code of the export media (containing the media files).
|
void |
setFailOnError(boolean failOnError)
Sets whether the export will fail on error or tries to continue execution.
|
void |
setFieldSeparator(char fieldSeparator) |
void |
setQuoteCharacter(char quoteCharacter) |
void |
setScript(ImpExResource script)
Sets the export script to use for export.
|
void |
setSessionUser(EmployeeModel sessionUser) |
void |
setSingleFile(boolean singleFile)
Sets whether the exported data will be located in one csv file.
|
void |
setSynchronous(boolean synchronous)
Sets whether the export will be executed synchronous.
|
void |
setValidationMode(ExportConfig.ValidationMode validationMode)
Sets the validation mode for export.
|
public ImpExResource getScript()
public void setScript(ImpExResource script)
script - the export script to usepublic ExportConfig.ValidationMode getValidationMode()
ExportConfig.ValidationMode.STRICT.public boolean isFailOnError()
public boolean isSynchronous()
public char getFieldSeparator()
public char getQuoteCharacter()
public char getCommentCharacter()
public boolean isSingleFile()
public void setValidationMode(ExportConfig.ValidationMode validationMode)
ExportConfig.ValidationMode.STRICT.validationMode - the validation mode to setpublic void setFailOnError(boolean failOnError)
failOnError - true if it should fail on errorpublic void setSynchronous(boolean synchronous)
synchronous - true if execution will be synchronouspublic void setFieldSeparator(char fieldSeparator)
fieldSeparator - the fieldSeparator to setpublic void setQuoteCharacter(char quoteCharacter)
quoteCharacter - the quoteCharacter to setpublic void setCommentCharacter(char commentCharacter)
commentCharacter - the comment character to setpublic void setSingleFile(boolean singleFile)
singleFile - true if the data will be located in one filepublic java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
encoding - the encoding to setpublic java.lang.String getExportedDataCode()
public void setExportedDataCode(java.lang.String exportedDataCode)
exportedDataCode - the code of the export media (containing the data) to setpublic java.lang.String getExportedMediaCode()
public void setExportedMediaCode(java.lang.String exportedMediaCode)
exportedMediaCode - the code of the export media (containing the media files) to setpublic EmployeeModel getSessionUser()
public void setSessionUser(EmployeeModel sessionUser)
Copyright © 2018 SAP SE. All Rights Reserved.