Class DefaultPatchImportService
java.lang.Object
de.hybris.platform.patches.service.impl.DefaultPatchImportService
- All Implemented Interfaces:
PatchImportService
Implementation of patches specific import service.
-
Field Summary
Fields inherited from interface de.hybris.platform.patches.service.PatchImportService
IMPEX_IMPORT_CRON_JOB_REMOVE_ON_SUCCESS_PROPERTY_KEY, IMPEX_IMPORT_FAIL_ON_ERROR_PROPERTY_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetStreamForImpexImportUnit(ImpexImportUnit impexImportUnit) Method prepares SequenceInputStream based on impexImportUnit.importImpexUnit(ImpexImportUnit impexImportUnit) Method for importing impex data based on ImpexImportUnit.importImpexUnitWithoutTracking(ImpexImportUnit impexImportUnit) Method is workaround not to execute the aspect.voidsetConfigurationService(ConfigurationService configurationService) voidsetImportService(ImportService importService)
-
Constructor Details
-
DefaultPatchImportService
public DefaultPatchImportService()
-
-
Method Details
-
importImpexUnit
Description copied from interface:PatchImportServiceMethod for importing impex data based on ImpexImportUnit. ImpexImportUnitResult data is created after import with information about import result.- Specified by:
importImpexUnitin interfacePatchImportService- Parameters:
impexImportUnit- unit which keeps all data- Returns:
- ImpexImportUnitResult - object keeps information about impexImportUnit and import result
-
importImpexUnitWithoutTracking
Description copied from interface:PatchImportServiceMethod is workaround not to execute the aspect. It is used to execute importImpexUnit without tracking.- Specified by:
importImpexUnitWithoutTrackingin interfacePatchImportService- Parameters:
impexImportUnit- unit which keeps all data- Returns:
- ImpexImportUnitResult - object keeps information about impexImportUnit and import result
-
getStreamForImpexImportUnit
public SequenceInputStream getStreamForImpexImportUnit(ImpexImportUnit impexImportUnit) throws FileNotFoundException Description copied from interface:PatchImportServiceMethod prepares SequenceInputStream based on impexImportUnit. It combines stream based on macro list, header files and data file.- Specified by:
getStreamForImpexImportUnitin interfacePatchImportService- Parameters:
impexImportUnit- unit which keeps all data- Returns:
- SequenceInputStream keeps all data from impexImportUnit in one stream
- Throws:
FileNotFoundException- when a given impex file cannot be found
-
setConfigurationService
-
setImportService
-