Class AbstractDemoPatch

java.lang.Object
de.hybris.platform.patches.AbstractPatch
de.hybris.platform.patchesdemo.release.AbstractDemoPatch
All Implemented Interfaces:
Patch, DemoPatch
Direct Known Subclasses:
MajorErrorPatch, MinorErrorPatch, Patch1x0, Patch2x0, Patch2x1

public abstract class AbstractDemoPatch extends AbstractPatch implements DemoPatch
Project specific parent class for all patches. It works as facade giving nice API for Patches class and translate calls to not project specific format.
  • Constructor Details

  • Method Details

    • createProjectData

      public void createProjectData(StructureState structureState)
      Description copied from interface: Patch
      Execute Patch with given structureState.
      Specified by:
      createProjectData in interface Patch
      Parameters:
      structureState - that should be used for creating project data
    • createGlobalData

      protected void createGlobalData(StructureState structureState, boolean update)
      This method is responsible for update global data (not organisation specific).
      Parameters:
      structureState - indicates which structureState should be used to import these global data (see update parameter)
      update - if set to true:
      only language specific files will be imported (assumption is that not language specific files were imported before since this is just update). It also means that data will uploaded only for languages defined for organisations defined in this structureState that weren't introduced for other organisations before
    • createShopsData

      protected void createShopsData(StructureState structureState, boolean update)
      This method will update shop data with specific structureState.
      Parameters:
      structureState - indicates which structureState should be used to import these global data (see update parameter)
      update - if set to true:
      only language specific files will be imported (assumption is that not language specific files were imported before since this is just update). It also means that data will uploaded only for languages defined for organisations defined in this structureState that weren't introduced for other organisations before
    • createShopsData

      protected void createShopsData(Collection<ShopOrganisation> shops, boolean update)
      This method will update set of given shop organisations with given structureState. Update indicate if only language specific files should be imported.
      Parameters:
      shops -
      update -
    • createShopsData

      @Deprecated(since="1811", forRemoval=true) protected void createShopsData(Collection<ShopOrganisation> shops, StructureState structureState, boolean update)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 1811 This method will update set of given shop organisations with given structureState. Update indicate if only language specific files should be imported.
      Parameters:
      shops -
      structureState -
      update -
    • importShopSpecificData

      protected void importShopSpecificData(String fileName, Set<ImportLanguage> languages, ShopOrganisation shopOrganisation, boolean runAgain)
    • importShopSpecificData

      protected void importShopSpecificData(String fileName, Set<ImportLanguage> languages, ShopOrganisation shopOrganisation, boolean runAgain, ImpexImportUnitOption[] importOptions)
    • importShopCatalogVersionSpecificData

      protected void importShopCatalogVersionSpecificData(String fileName, Set<ImportLanguage> languages, ShopOrganisation shopOrganisation, boolean runAgain)
    • importShopCatalogVersionSpecificData

      protected void importShopCatalogVersionSpecificData(String fileName, Set<ImportLanguage> languages, ShopOrganisation shopOrganisation, boolean runAgain, ImpexImportUnitOption[] importOptions)
    • importCountryData

      protected void importCountryData(String fileName, CountryOrganisation countryOrganisationn)
    • importCountryData

      protected void importCountryData(String fileName, CountryOrganisation countryOrganisationn, ImpexImportUnitOption[] importOptions)