public class DefaultImportCockpitMediaService extends AbstractBusinessService implements ImportCockpitMediaService
AbstractService.SerializableDTOmodelService, sessionService, txManagertenant| Constructor and Description |
|---|
DefaultImportCockpitMediaService() |
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerafterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, setTenantScope, writeReplaceprotected MediaService getMediaService()
public void setMediaService(MediaService mediaService)
public CSVReader createMediaReader(ImportCockpitInputMediaModel media) throws JaloBusinessException, UnsupportedEncodingException
ImportCockpitMediaServicecreateMediaReader in interface ImportCockpitMediaServicemedia - CSV source file uploaded to the cron jobJaloBusinessExceptionUnsupportedEncodingExceptionprotected CSVReader createCSVReader(ImportCockpitInputMediaModel media) throws NoDataAvailableException, UnsupportedEncodingException, IllegalArgumentException
public boolean validateInputFile(ImportCockpitInputMediaModel inputMedia)
ImportCockpitMediaServiceImportCockpitInputMediaModel (CSV format) that is to be assigned to an
ImportCockpitCronJobModel.validateInputFile in interface ImportCockpitMediaServiceinputMedia - - ImportCockpitInputMediaModelImportCockpitInputMediaModel is valid false otherwise.public List<String> getSourceColumnNames(ImportCockpitInputMediaModel media)
ImportCockpitMediaServicegetSourceColumnNames in interface ImportCockpitMediaServicemedia - of type ImportCockpitInputMediaModel.public List<SourceColumnModel> getSourceColumnData(ImportCockpitCronJobModel icCronJobModel)
ImportCockpitMediaServiceImportCockpitCronJobModel, this method will return all the the data for each field(column) as a
List of SourceColumnModel.getSourceColumnData in interface ImportCockpitMediaServiceicCronJobModel - 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.public ImpExMediaModel createMediaFromFile(String filePackageName) throws FileNotFoundException
ImportCockpitMediaServiceImpExMediaModel.createMediaFromFile in interface ImportCockpitMediaServicefilePackageName - - 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.protected ImpExImportCockpitMediaModel createImpExImportCockpitMedia(String code)
code - Copyright © 2017 SAP SE. All Rights Reserved.