Class AbstractImportCockpitMappingService
- java.lang.Object
-
- de.hybris.platform.importcockpit.services.mapping.impl.AbstractImportCockpitMappingService
-
- All Implemented Interfaces:
ImportCockpitMappingService
- Direct Known Subclasses:
DefaultImportCockpitMappingService
public abstract class AbstractImportCockpitMappingService extends java.lang.Object implements ImportCockpitMappingService
Implements a part of the methods required by the ImportCockpitMappingService interface
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Class[]
JAXB_MAPPING_ROOT_TYPES
protected static org.apache.log4j.Logger
LOG
-
Constructor Summary
Constructors Constructor Description AbstractImportCockpitMappingService()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.importcockpit.services.mapping.ImportCockpitMappingService
copyMapping, findMappingsWithUrl, loadMapping, retrieveMapping, validateAndSaveMapping, validateAndSaveMapping
-
-
-
-
Method Detail
-
getImportCockpitMappingDao
protected ImportCockpitMappingDao getImportCockpitMappingDao()
-
setImportCockpitMappingDao
public void setImportCockpitMappingDao(ImportCockpitMappingDao importCockpitMappingDao)
-
getTransformationService
protected MappingTransformationService getTransformationService()
-
setTransformationService
public void setTransformationService(MappingTransformationService transformationService)
-
getImportCockpitMediaService
protected ImportCockpitMediaService getImportCockpitMediaService()
-
setImportCockpitMediaService
public void setImportCockpitMediaService(ImportCockpitMediaService importCockpitMediaService)
-
getMediaService
protected MediaService getMediaService()
-
setMediaService
public void setMediaService(MediaService mediaService)
-
getTypeService
protected TypeService getTypeService()
-
setTypeService
public void setTypeService(TypeService typeService)
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getMappingLineConfigService
protected MappingLineConfigService getMappingLineConfigService()
-
setMappingLineConfigService
public void setMappingLineConfigService(MappingLineConfigService mappingLineConfigService)
-
getMappingLineTypeService
protected MappingLineTypeService getMappingLineTypeService()
-
setMappingLineTypeService
public void setMappingLineTypeService(MappingLineTypeService mappingLineTypeService)
-
getModelValidationService
protected MappingModelValidationService getModelValidationService()
-
setModelValidationService
public void setModelValidationService(MappingModelValidationService modelValidationService)
-
saveMappingToProcessModel
protected void saveMappingToProcessModel(MappingModel mapping, java.lang.String mappingName, ImportCockpitCronJobModel processModel, boolean saveAs) throws ModelSavingException
Stores the mapping as a XML media into the job.- Parameters:
mapping
-mappingName
-processModel
-saveAs
- option- Throws:
ModelSavingException
-
createMapping
protected ImportCockpitMappingModel createMapping(java.lang.String mappingName)
-
createMappingXML
protected java.lang.String createMappingXML(MappingModel mappingModel)
Transforms a mapping into a XML string.- Parameters:
mappingModel
-- Returns:
- XML string
-
getMappingXMLData
protected java.io.Reader getMappingXMLData(ImportCockpitMappingModel sourceMappingModel, java.io.PushbackReader pushbackReader)
Returns the stored mapping as a XML string.- Parameters:
sourceMappingModel
- ,it is the ImportCockpitMapping- Returns:
- mapping as stream
-
loadMappingFromXml
protected MappingModel loadMappingFromXml(java.io.Reader reader)
Constructs a mapping object out of a XML string.- Parameters:
reader
-- Returns:
- mapping
-
-