Package org.ametys.plugins.contentio.csv
Class ImportCSVFile
java.lang.Object
org.ametys.plugins.contentio.csv.ImportCSVFile
- All Implemented Interfaces:
Component
,Contextualizable
,Serviceable
Import contents from an uploaded CSV file.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextualize
(Context context) importCSVFile
(String escapingChar, String separatingChar, String contentTypeId, Part part) Import CSV filevoid
service
(ServiceManager serviceManager)
-
Field Details
-
ROLE
Avalon Role
-
-
Constructor Details
-
ImportCSVFile
public ImportCSVFile()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
importCSVFile
public Map importCSVFile(String escapingChar, String separatingChar, String contentTypeId, Part part) throws Exception Import CSV file- 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
-