public interface ImportCockpitMediaService
| Modifier and Type | Method and Description |
|---|---|
ImpExMediaModel |
createMediaFromFile(String filePackageName)
Give the supplied filename (full file path), this method will create and return an
ImpExMediaModel. |
CSVReader |
createMediaReader(ImportCockpitInputMediaModel media)
Creates a media reader for the source file.
|
List<SourceColumnModel> |
getSourceColumnData(ImportCockpitCronJobModel icCronJobModel)
Given the supplied
ImportCockpitCronJobModel, this method will return all the the data for each field(column) as a
List of SourceColumnModel. |
List<String> |
getSourceColumnNames(ImportCockpitInputMediaModel media)
Retrieves the source column names/labels of the uploaded source file.
|
boolean |
validateInputFile(ImportCockpitInputMediaModel inputMedia)
Validates the
ImportCockpitInputMediaModel (CSV format) that is to be assigned to an
ImportCockpitCronJobModel. |
CSVReader createMediaReader(ImportCockpitInputMediaModel media) throws JaloBusinessException, UnsupportedEncodingException
media - CSV source file uploaded to the cron jobJaloBusinessExceptionUnsupportedEncodingExceptionboolean validateInputFile(ImportCockpitInputMediaModel inputMedia)
ImportCockpitInputMediaModel (CSV format) that is to be assigned to an
ImportCockpitCronJobModel.inputMedia - - ImportCockpitInputMediaModelImportCockpitInputMediaModel is valid false otherwise.List<String> getSourceColumnNames(ImportCockpitInputMediaModel media)
media - of type ImportCockpitInputMediaModel.List<SourceColumnModel> getSourceColumnData(ImportCockpitCronJobModel icCronJobModel)
ImportCockpitCronJobModel, this method will return all the the data for each field(column) as a
List of SourceColumnModel.icCronJobModel - the cron job of type ImportCockpitCronJobModel to retrieve the the source column data from.SourceColumnModels that represents the data stored in the source used for
mapping.ImpExMediaModel createMediaFromFile(String filePackageName) throws FileNotFoundException
ImpExMediaModel.filePackageName - - A String representing the location of the file that will be used to create an
ImpExMediaModel.ImpExMediaModelFileNotFoundException - - Occurs when the file (as per filename) is not found.Copyright © 2017 SAP SE. All Rights Reserved.