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 StringCSV_IMPORT_SOURCEstatic StringDC_CONTRIBUTORSstatic StringDC_CREATORstatic List<String>IGNORE_FIELDS_ON_UPDATEprotected CSVImporterOptionsimporterOptions
-
Constructor Summary
Constructors Constructor Description DefaultCSVImporterDocumentFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcreateDocument(CoreSession session, String parentPath, String name, String type, Map<String,Serializable> values)booleanexists(CoreSession session, String parentPath, String name, String type, Map<String,Serializable> values)Deprecated.booleanexists(CoreSession session, String parentPath, String name, Map<String,Serializable> values)protected Map<String,Serializable>prepareValues(Map<String,Serializable> values)voidsetImporterOptions(CSVImporterOptions importerOptions)protected voidsetLifeCycleState(Map<String,Serializable> values, DocumentModel doc, String lifeCyclePropertyName)voidupdateDocument(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:
createDocumentin 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:
updateDocumentin interfaceCSVImporterDocumentFactory
-
exists
public boolean exists(CoreSession session, String parentPath, String name, Map<String,Serializable> values)
- Specified by:
existsin interfaceCSVImporterDocumentFactory- Returns:
trueif document with the specified parentPath, name, and values exists.falseotherwise.
-
exists
@Deprecated public boolean exists(CoreSession session, String parentPath, String name, String type, Map<String,Serializable> values)
Deprecated.- Specified by:
existsin interfaceCSVImporterDocumentFactory
-
setImporterOptions
public void setImporterOptions(CSVImporterOptions importerOptions)
- Specified by:
setImporterOptionsin interfaceCSVImporterDocumentFactory
-
-