Package org.nuxeo.ecm.csv.core
Class CSVImporterOptions
- java.lang.Object
-
- org.nuxeo.ecm.csv.core.CSVImporterOptions
-
- All Implemented Interfaces:
Serializable
public class CSVImporterOptions extends Object implements Serializable
- Since:
- 5.7
- Author:
- Thomas Roger
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CSVImporterOptions.Builder
static class
CSVImporterOptions.ImportMode
-
Field Summary
Fields Modifier and Type Field Description protected int
batchSize
protected boolean
checkAllowedSubTypes
protected Character
commentMarker
protected long
computeTotalThresholdSize
protected CSVImporterDocumentFactory
CSVImporterDocumentFactory
protected DateFormat
dateFormat
static CSVImporterOptions
DEFAULT_OPTIONS
protected Character
escapeCharacter
protected CSVImporterOptions.ImportMode
importMode
static String
LEGACY_DATE_FORMAT
static String
LEGACY_DATE_FORMAT_PROP
protected String
listSeparatorRegex
protected boolean
sendEmail
protected boolean
updateExisting
-
Constructor Summary
Constructors Modifier Constructor Description protected
CSVImporterOptions(CSVImporterDocumentFactory CSVImporterDocumentFactory, String dateFormat, String listSeparatorRegex, boolean updateExisting, boolean checkAllowedSubTypes, boolean sendEmail, int batchSize, CSVImporterOptions.ImportMode importMode)
Deprecated.since 11.5, use builder insteadprotected
CSVImporterOptions(CSVImporterDocumentFactory CSVImporterDocumentFactory, String dateFormat, String listSeparatorRegex, Character escapeCharacter, boolean updateExisting, boolean checkAllowedSubTypes, boolean sendEmail, int batchSize, CSVImporterOptions.ImportMode importMode)
Deprecated.since 11.5, use builder insteadprotected
CSVImporterOptions(CSVImporterDocumentFactory CSVImporterDocumentFactory, String dateFormat, String listSeparatorRegex, Character commentMarker, Character escapeCharacter, boolean updateExisting, boolean checkAllowedSubTypes, boolean sendEmail, int batchSize, CSVImporterOptions.ImportMode importMode, long computeTotalThresholdSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkAllowedSubTypes()
protected DateFormat
computeDateFormat(String dateFormat)
int
getBatchSize()
Character
getCommentMarker()
long
getComputeTotalThresholdSize()
CSVImporterDocumentFactory
getCSVImporterDocumentFactory()
DateFormat
getDateFormat()
Character
getEscapeCharacter()
CSVImporterOptions.ImportMode
getImportMode()
String
getListSeparatorRegex()
boolean
sendEmail()
boolean
updateExisting()
-
-
-
Field Detail
-
LEGACY_DATE_FORMAT_PROP
public static final String LEGACY_DATE_FORMAT_PROP
- See Also:
- Constant Field Values
-
LEGACY_DATE_FORMAT
public static final String LEGACY_DATE_FORMAT
- See Also:
- Constant Field Values
-
DEFAULT_OPTIONS
public static final CSVImporterOptions DEFAULT_OPTIONS
-
importMode
protected CSVImporterOptions.ImportMode importMode
-
CSVImporterDocumentFactory
protected final CSVImporterDocumentFactory CSVImporterDocumentFactory
-
dateFormat
protected final DateFormat dateFormat
-
listSeparatorRegex
protected final String listSeparatorRegex
-
commentMarker
protected final Character commentMarker
-
escapeCharacter
protected final Character escapeCharacter
-
updateExisting
protected final boolean updateExisting
-
checkAllowedSubTypes
protected final boolean checkAllowedSubTypes
-
sendEmail
protected final boolean sendEmail
-
batchSize
protected final int batchSize
-
computeTotalThresholdSize
protected final long computeTotalThresholdSize
-
-
Constructor Detail
-
CSVImporterOptions
protected CSVImporterOptions(CSVImporterDocumentFactory CSVImporterDocumentFactory, String dateFormat, String listSeparatorRegex, boolean updateExisting, boolean checkAllowedSubTypes, boolean sendEmail, int batchSize, CSVImporterOptions.ImportMode importMode)
Deprecated.since 11.5, use builder instead
-
CSVImporterOptions
protected CSVImporterOptions(CSVImporterDocumentFactory CSVImporterDocumentFactory, String dateFormat, String listSeparatorRegex, Character escapeCharacter, boolean updateExisting, boolean checkAllowedSubTypes, boolean sendEmail, int batchSize, CSVImporterOptions.ImportMode importMode)
Deprecated.since 11.5, use builder instead- Since:
- 7.2
-
CSVImporterOptions
protected CSVImporterOptions(CSVImporterDocumentFactory CSVImporterDocumentFactory, String dateFormat, String listSeparatorRegex, Character commentMarker, Character escapeCharacter, boolean updateExisting, boolean checkAllowedSubTypes, boolean sendEmail, int batchSize, CSVImporterOptions.ImportMode importMode, long computeTotalThresholdSize)
- Since:
- 8.3
-
-
Method Detail
-
computeDateFormat
protected DateFormat computeDateFormat(String dateFormat)
-
getCSVImporterDocumentFactory
public CSVImporterDocumentFactory getCSVImporterDocumentFactory()
-
getDateFormat
public DateFormat getDateFormat()
-
getListSeparatorRegex
public String getListSeparatorRegex()
-
getCommentMarker
public Character getCommentMarker()
-
getEscapeCharacter
public Character getEscapeCharacter()
-
updateExisting
public boolean updateExisting()
-
checkAllowedSubTypes
public boolean checkAllowedSubTypes()
-
sendEmail
public boolean sendEmail()
-
getBatchSize
public int getBatchSize()
-
getComputeTotalThresholdSize
public long getComputeTotalThresholdSize()
- Since:
- 11.5
-
getImportMode
public CSVImporterOptions.ImportMode getImportMode()
-
-