Package org.nuxeo.ecm.csv.core
Class DefaultCSVImporterDocumentFactory
java.lang.Object
org.nuxeo.ecm.csv.core.DefaultCSVImporterDocumentFactory
- All Implemented Interfaces:
Serializable
,CSVImporterDocumentFactory
- Since:
- 5.7
- Author:
- Thomas Roger
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
protected CSVImporterOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createDocument
(CoreSession session, String parentPath, String name, String type, Map<String, Serializable> values) 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 Details
-
DC_CREATOR
- See Also:
-
DC_CONTRIBUTORS
- See Also:
-
IGNORE_FIELDS_ON_UPDATE
-
CSV_IMPORT_SOURCE
- Since:
- 11.5
- See Also:
-
importerOptions
-
-
Constructor Details
-
DefaultCSVImporterDocumentFactory
public DefaultCSVImporterDocumentFactory()
-
-
Method Details
-
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
-
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.
-
setImporterOptions
- Specified by:
setImporterOptions
in interfaceCSVImporterDocumentFactory
-