Class AbstractDemoPatch
- java.lang.Object
-
- de.hybris.platform.patches.AbstractPatch
-
- de.hybris.platform.patchesdemo.release.AbstractDemoPatch
-
- 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.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.patches.AbstractPatch
importPatchAction, patchId, patchName, release, sqlCommandPatchAction, structureState
-
-
Constructor Summary
Constructors Constructor Description AbstractDemoPatch(java.lang.String patchId, java.lang.String patchName, Release release, StructureState structureState)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidcreateGlobalData(StructureState structureState, boolean update)This method is responsible for update global data (not organisation specific).voidcreateProjectData(StructureState structureState)Execute Patch with given structureState.protected voidcreateShopsData(StructureState structureState, boolean update)This method will update shop data with specific structureState.protected voidcreateShopsData(java.util.Collection<ShopOrganisation> shops, boolean update)This method will update set of given shop organisations with given structureState.protected voidcreateShopsData(java.util.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.protected voidimportCountryData(java.lang.String fileName, CountryOrganisation countryOrganisationn)protected voidimportCountryData(java.lang.String fileName, CountryOrganisation countryOrganisationn, ImpexImportUnitOption[] importOptions)protected voidimportShopCatalogVersionSpecificData(java.lang.String fileName, java.util.Set<ImportLanguage> languages, ShopOrganisation shopOrganisation, boolean runAgain)protected voidimportShopCatalogVersionSpecificData(java.lang.String fileName, java.util.Set<ImportLanguage> languages, ShopOrganisation shopOrganisation, boolean runAgain, ImpexImportUnitOption[] importOptions)protected voidimportShopSpecificData(java.lang.String fileName, java.util.Set<ImportLanguage> languages, ShopOrganisation shopOrganisation, boolean runAgain)protected voidimportShopSpecificData(java.lang.String fileName, java.util.Set<ImportLanguage> languages, ShopOrganisation shopOrganisation, boolean runAgain, ImpexImportUnitOption[] importOptions)-
Methods inherited from class de.hybris.platform.patches.AbstractPatch
executeUpdateOnDB, executeUpdateOnDB, getPatchDescription, getPatchId, getPatchName, getRelease, getStructureState, importData, importGlobalData, importGlobalData, setImportPatchAction, setSqlCommandPatchAction
-
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.patchesdemo.release.DemoPatch
createCountryData, createGlobalData, createShopData
-
Methods inherited from interface de.hybris.platform.patches.Patch
createEssentialData, getPatchDescription, getPatchId, getPatchName, getRelease, getStructureState
-
-
-
-
Constructor Detail
-
AbstractDemoPatch
public AbstractDemoPatch(java.lang.String patchId, java.lang.String patchName, Release release, StructureState structureState)
-
-
Method Detail
-
createProjectData
public void createProjectData(StructureState structureState)
Description copied from interface:PatchExecute Patch with given structureState.- Specified by:
createProjectDatain interfacePatch- 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(java.util.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(java.util.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(java.lang.String fileName, java.util.Set<ImportLanguage> languages, ShopOrganisation shopOrganisation, boolean runAgain)
-
importShopSpecificData
protected void importShopSpecificData(java.lang.String fileName, java.util.Set<ImportLanguage> languages, ShopOrganisation shopOrganisation, boolean runAgain, ImpexImportUnitOption[] importOptions)
-
importShopCatalogVersionSpecificData
protected void importShopCatalogVersionSpecificData(java.lang.String fileName, java.util.Set<ImportLanguage> languages, ShopOrganisation shopOrganisation, boolean runAgain)
-
importShopCatalogVersionSpecificData
protected void importShopCatalogVersionSpecificData(java.lang.String fileName, java.util.Set<ImportLanguage> languages, ShopOrganisation shopOrganisation, boolean runAgain, ImpexImportUnitOption[] importOptions)
-
importCountryData
protected void importCountryData(java.lang.String fileName, CountryOrganisation countryOrganisationn)
-
importCountryData
protected void importCountryData(java.lang.String fileName, CountryOrganisation countryOrganisationn, ImpexImportUnitOption[] importOptions)
-
-