Class DefaultPatchImportService

java.lang.Object
de.hybris.platform.patches.service.impl.DefaultPatchImportService
All Implemented Interfaces:
PatchImportService

public class DefaultPatchImportService extends Object implements PatchImportService
Implementation of patches specific import service.
  • Constructor Details

    • DefaultPatchImportService

      public DefaultPatchImportService()
  • Method Details

    • importImpexUnit

      public ImpexImportUnitResult importImpexUnit(ImpexImportUnit impexImportUnit)
      Description copied from interface: PatchImportService
      Method for importing impex data based on ImpexImportUnit. ImpexImportUnitResult data is created after import with information about import result.
      Specified by:
      importImpexUnit in interface PatchImportService
      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: PatchImportService
      Method is workaround not to execute the aspect. It is used to execute importImpexUnit without tracking.
      Specified by:
      importImpexUnitWithoutTracking in interface PatchImportService
      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: PatchImportService
      Method prepares SequenceInputStream based on impexImportUnit. It combines stream based on macro list, header files and data file.
      Specified by:
      getStreamForImpexImportUnit in interface PatchImportService
      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

      public void setConfigurationService(ConfigurationService configurationService)
    • setImportService

      public void setImportService(ImportService importService)