Package org.ametys.odf.skill.imports.csv
Class ImportSkillsCSVFile
java.lang.Object
org.ametys.plugins.contentio.csv.ImportCSVFile
org.ametys.odf.skill.imports.csv.ImportSkillsCSVFile
- All Implemented Interfaces:
Component
,Contextualizable
,Serviceable
Import skills from an uploaded CSV file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RightManager
The right managerstatic final String
Avalon Role -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionimportCSVFile
(String escapingChar, String separatingChar, String contentTypeId, Part part) Import CSV filevoid
service
(ServiceManager manager) Methods inherited from class org.ametys.plugins.contentio.csv.ImportCSVFile
contextualize
-
Field Details
-
ROLE
Avalon Role -
_rightManager
The right manager
-
-
Constructor Details
-
ImportSkillsCSVFile
public ImportSkillsCSVFile()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classImportCSVFile
- Throws:
ServiceException
-
importCSVFile
public Map importCSVFile(String escapingChar, String separatingChar, String contentTypeId, Part part) throws Exception Import CSV file- Overrides:
importCSVFile
in classImportCSVFile
- Parameters:
escapingChar
- The escaping characterseparatingChar
- The separating charactercontentTypeId
- The content type idpart
- The CSV file's Part- Returns:
- The result of the import
- Throws:
Exception
- If an error occurs
-