Class DefaultPatchImportService
- java.lang.Object
-
- de.hybris.platform.patches.service.impl.DefaultPatchImportService
-
- All Implemented Interfaces:
PatchImportService
public class DefaultPatchImportService extends java.lang.Object implements 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 Constructor Description DefaultPatchImportService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.SequenceInputStreamgetStreamForImpexImportUnit(ImpexImportUnit impexImportUnit)Method prepares SequenceInputStream based on impexImportUnit.ImpexImportUnitResultimportImpexUnit(ImpexImportUnit impexImportUnit)Method for importing impex data based on ImpexImportUnit.ImpexImportUnitResultimportImpexUnitWithoutTracking(ImpexImportUnit impexImportUnit)Method is workaround not to execute the aspect.voidsetConfigurationService(ConfigurationService configurationService)voidsetImportService(ImportService importService)
-
-
-
Method Detail
-
importImpexUnit
public ImpexImportUnitResult importImpexUnit(ImpexImportUnit impexImportUnit)
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
public ImpexImportUnitResult importImpexUnitWithoutTracking(ImpexImportUnit impexImportUnit)
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 java.io.SequenceInputStream getStreamForImpexImportUnit(ImpexImportUnit impexImportUnit) throws java.io.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:
java.io.FileNotFoundException- when a given impex file cannot be found
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
-
setImportService
public void setImportService(ImportService importService)
-
-