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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextualize(Context context) importCSVFile(String escapingChar, String separatingChar, String contentTypeId, Part part) Import CSV filevoidservice(ServiceManager serviceManager)
-
Field Details
-
ROLE
Avalon Role
-
-
Constructor Details
-
ImportCSVFile
public ImportCSVFile()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
contextualize
- Specified by:
contextualizein 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
-