Class DefaultImportCockpitMappingService
- java.lang.Object
-
- de.hybris.platform.importcockpit.services.mapping.impl.AbstractImportCockpitMappingService
-
- de.hybris.platform.importcockpit.services.mapping.impl.DefaultImportCockpitMappingService
-
- All Implemented Interfaces:
ImportCockpitMappingService
public class DefaultImportCockpitMappingService extends AbstractImportCockpitMappingService
Implements a part of the methods required by the ImportCockpitMappingService interface
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.importcockpit.services.mapping.impl.AbstractImportCockpitMappingService
JAXB_MAPPING_ROOT_TYPES
-
-
Constructor Summary
Constructors Constructor Description DefaultImportCockpitMappingService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MappingModelcopyMapping(ImportCockpitMappingModel sourceMappingModel, java.io.Reader reader)Creates and returns a new mapping that contains a copy of the mapping XML of a given ImportCockpitMapping object.java.util.List<ImportCockpitMappingModel>findMappingsWithUrl()Retrieves all mappings with a URL from the database.MappingModelloadMapping(ImportCockpitCronJobModel jobModel)Loads a mapping from a job if available.MappingModelretrieveMapping(ImportCockpitCronJobModel processModel)Loads the mapping from a supplied cron job (ImportCockpitCronJobModel).voidvalidateAndSaveMapping(MappingModel mappingModel, java.lang.String mappingName, ImportCockpitCronJobModel processModel)Validates and saves the mappingvoidvalidateAndSaveMapping(MappingModel mappingModel, java.lang.String mappingName, ImportCockpitCronJobModel processModel, boolean saveAs)Validates and saves the mapping-
Methods inherited from class de.hybris.platform.importcockpit.services.mapping.impl.AbstractImportCockpitMappingService
createMapping, createMappingXML, getImportCockpitMappingDao, getImportCockpitMediaService, getMappingLineConfigService, getMappingLineTypeService, getMappingXMLData, getMediaService, getModelService, getModelValidationService, getTransformationService, getTypeService, loadMappingFromXml, saveMappingToProcessModel, setImportCockpitMappingDao, setImportCockpitMediaService, setMappingLineConfigService, setMappingLineTypeService, setMediaService, setModelService, setModelValidationService, setTransformationService, setTypeService
-
-
-
-
Method Detail
-
loadMapping
public MappingModel loadMapping(ImportCockpitCronJobModel jobModel)
Description copied from interface:ImportCockpitMappingServiceLoads a mapping from a job if available. If there is no mapping specified, no mapping will be created and the method will return null.- Parameters:
jobModel- job- Returns:
- mapping
-
retrieveMapping
public MappingModel retrieveMapping(ImportCockpitCronJobModel processModel)
Description copied from interface:ImportCockpitMappingServiceLoads the mapping from a supplied cron job (ImportCockpitCronJobModel). If there is no mapping specified for the job then a new one is being created.- Parameters:
processModel- job- Returns:
- mapping
-
copyMapping
public MappingModel copyMapping(ImportCockpitMappingModel sourceMappingModel, java.io.Reader reader)
Description copied from interface:ImportCockpitMappingServiceCreates and returns a new mapping that contains a copy of the mapping XML of a given ImportCockpitMapping object.- Parameters:
sourceMappingModel- ,it is the ImportCockpitMappingreader- reader- Returns:
- a new mapping with a copied XML from an ImportCockpitMapping object
-
findMappingsWithUrl
public java.util.List<ImportCockpitMappingModel> findMappingsWithUrl()
Description copied from interface:ImportCockpitMappingServiceRetrieves all mappings with a URL from the database. Used by the "load mapping" functionality.- Returns:
- list of ImportCockpitMapping objects
-
validateAndSaveMapping
public void validateAndSaveMapping(MappingModel mappingModel, java.lang.String mappingName, ImportCockpitCronJobModel processModel) throws ModelSavingException
Description copied from interface:ImportCockpitMappingServiceValidates and saves the mapping- Parameters:
mappingModel- mappingmappingName- mapping nameprocessModel- process- Throws:
ModelSavingException
-
validateAndSaveMapping
public void validateAndSaveMapping(MappingModel mappingModel, java.lang.String mappingName, ImportCockpitCronJobModel processModel, boolean saveAs) throws ModelSavingException
Description copied from interface:ImportCockpitMappingServiceValidates and saves the mapping- Parameters:
mappingModel- mappingmappingName- mapping nameprocessModel- processsaveAs- saveAs as- Throws:
ModelSavingException
-
-