Class AbstractDemoPatch
java.lang.Object
de.hybris.platform.patches.AbstractPatch
de.hybris.platform.patchesdemo.release.AbstractDemoPatch
- Direct Known Subclasses:
MajorErrorPatch,MinorErrorPatch,Patch1x0,Patch2x0,Patch2x1
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
ConstructorsConstructorDescriptionAbstractDemoPatch(String patchId, String patchName, Release release, StructureState structureState) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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(Collection<ShopOrganisation> shops, boolean update) This method will update set of given shop organisations with given structureState.protected voidcreateShopsData(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(String fileName, CountryOrganisation countryOrganisationn) protected voidimportCountryData(String fileName, CountryOrganisation countryOrganisationn, ImpexImportUnitOption[] importOptions) protected voidimportShopCatalogVersionSpecificData(String fileName, Set<ImportLanguage> languages, ShopOrganisation shopOrganisation, boolean runAgain) protected voidimportShopCatalogVersionSpecificData(String fileName, Set<ImportLanguage> languages, ShopOrganisation shopOrganisation, boolean runAgain, ImpexImportUnitOption[] importOptions) protected voidimportShopSpecificData(String fileName, Set<ImportLanguage> languages, ShopOrganisation shopOrganisation, boolean runAgain) protected voidimportShopSpecificData(String fileName, 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, setSqlCommandPatchActionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.patchesdemo.release.DemoPatch
createCountryData, createGlobalData, createShopDataMethods inherited from interface de.hybris.platform.patches.Patch
createEssentialData, getPatchDescription, getPatchId, getPatchName, getRelease, getStructureState
-
Constructor Details
-
AbstractDemoPatch
public AbstractDemoPatch(String patchId, String patchName, Release release, StructureState structureState)
-
-
Method Details
-
createProjectData
Description copied from interface:PatchExecute Patch with given structureState.- Specified by:
createProjectDatain interfacePatch- Parameters:
structureState- that should be used for creating project data
-
createGlobalData
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
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
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
-
importCountryData
protected void importCountryData(String fileName, CountryOrganisation countryOrganisationn, ImpexImportUnitOption[] importOptions)
-