Package org.ametys.plugins.contentio.csv
Class ImportReferenceTablesCSVFileHelper
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.contentio.csv.ImportCSVFileHelper
org.ametys.plugins.contentio.csv.ImportReferenceTablesCSVFileHelper
- All Implemented Interfaces:
LogEnabled
,Initializable
,Component
,Serviceable
Helper handling CSV import of reference table entries
-
Field Summary
Fields inherited from class org.ametys.plugins.contentio.csv.ImportCSVFileHelper
_contentTypeEP, _csvImporter, _resolver, CONFIG_PARENT_ID, MAPPING_COLUMN_ATTRIBUTE_PATH, MAPPING_COLUMN_HEADER, MAPPING_COLUMN_IS_ID, NESTED_MAPPING_ID, NESTED_MAPPING_VALUES, RESULT_ERROR, RESULT_FILENAME, RESULT_IMPORTED_COUNT, RESULT_NB_ERRORS, RESULT_NB_WARNINGS, ROLE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.ametys.plugins.contentio.csv.ImportCSVFileHelper
cancelImport, detectCharset, extractHeaders, getImportCSVParametersValues, getMapping, importContents, initialize, validateConfiguration
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
ImportReferenceTablesCSVFileHelper
public ImportReferenceTablesCSVFileHelper()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classImportCSVFileHelper
- Throws:
ServiceException
-
importContents
public Map<String,Object> importContents(Map<String, Object> config, Map<String, throws IOExceptionObject> formValues, List<Map<String, Object>> mappingValues) Description copied from class:ImportCSVFileHelper
Gets the configuration for creating/editing a collection of synchronizable contents.- Overrides:
importContents
in classImportCSVFileHelper
- Parameters:
config
- get all CSV related parameters: path, separating/escaping char, charset and contentTypeformValues
- map of form valuesmappingValues
- list of header and content attribute mapping- Returns:
- A map containing information about what is needed to create/edit a collection of synchronizable contents
- Throws:
IOException
- IOException while reading CSV
-