Package org.nuxeo.ecm.csv.core
Class DefaultCSVImporterDocumentFactory
- java.lang.Object
-
- org.nuxeo.ecm.csv.core.DefaultCSVImporterDocumentFactory
-
- All Implemented Interfaces:
Serializable
,CSVImporterDocumentFactory
public class DefaultCSVImporterDocumentFactory extends Object implements CSVImporterDocumentFactory
- Since:
- 5.7
- Author:
- Thomas Roger
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
CSV_IMPORT_SOURCE
static String
DC_CONTRIBUTORS
static String
DC_CREATOR
static List<String>
IGNORE_FIELDS_ON_UPDATE
protected CSVImporterOptions
importerOptions
-
Constructor Summary
Constructors Constructor Description DefaultCSVImporterDocumentFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
createDocument(CoreSession session, String parentPath, String name, String type, Map<String,Serializable> values)
boolean
exists(CoreSession session, String parentPath, String name, String type, Map<String,Serializable> values)
Deprecated.boolean
exists(CoreSession session, String parentPath, String name, Map<String,Serializable> values)
protected Map<String,Serializable>
prepareValues(Map<String,Serializable> values)
void
setImporterOptions(CSVImporterOptions importerOptions)
protected void
setLifeCycleState(Map<String,Serializable> values, DocumentModel doc, String lifeCyclePropertyName)
void
updateDocument(CoreSession session, DocumentRef docRef, Map<String,Serializable> values)
-
-
-
Field Detail
-
DC_CREATOR
public static final String DC_CREATOR
- See Also:
- Constant Field Values
-
DC_CONTRIBUTORS
public static final String DC_CONTRIBUTORS
- See Also:
- Constant Field Values
-
CSV_IMPORT_SOURCE
public static final String CSV_IMPORT_SOURCE
- Since:
- 11.5
- See Also:
- Constant Field Values
-
importerOptions
protected CSVImporterOptions importerOptions
-
-
Method Detail
-
createDocument
public void createDocument(CoreSession session, String parentPath, String name, String type, Map<String,Serializable> values)
- Specified by:
createDocument
in interfaceCSVImporterDocumentFactory
-
setLifeCycleState
protected void setLifeCycleState(Map<String,Serializable> values, DocumentModel doc, String lifeCyclePropertyName)
-
prepareValues
protected Map<String,Serializable> prepareValues(Map<String,Serializable> values)
-
updateDocument
public void updateDocument(CoreSession session, DocumentRef docRef, Map<String,Serializable> values)
- Specified by:
updateDocument
in interfaceCSVImporterDocumentFactory
-
exists
public boolean exists(CoreSession session, String parentPath, String name, Map<String,Serializable> values)
- Specified by:
exists
in interfaceCSVImporterDocumentFactory
- Returns:
true
if document with the specified parentPath, name, and values exists.false
otherwise.
-
exists
@Deprecated public boolean exists(CoreSession session, String parentPath, String name, String type, Map<String,Serializable> values)
Deprecated.- Specified by:
exists
in interfaceCSVImporterDocumentFactory
-
setImporterOptions
public void setImporterOptions(CSVImporterOptions importerOptions)
- Specified by:
setImporterOptions
in interfaceCSVImporterDocumentFactory
-
-