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 RightManagerThe right managerstatic final StringAvalon Role -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionimportCSVFile(String escapingChar, String separatingChar, String contentTypeId, Part part) Import CSV filevoidservice(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:
servicein interfaceServiceable- Overrides:
servicein classImportCSVFile- Throws:
ServiceException
-
importCSVFile
public Map importCSVFile(String escapingChar, String separatingChar, String contentTypeId, Part part) throws Exception Import CSV file- Overrides:
importCSVFilein 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
-