Class PatchesDemoSystemSetup
- java.lang.Object
-
- de.hybris.platform.patches.AbstractPatchesSystemSetup
-
- de.hybris.platform.patchesdemo.setup.PatchesDemoSystemSetup
-
@SystemSetup(extension="patchesdemo") public class PatchesDemoSystemSetup extends AbstractPatchesSystemSetup
Example of SystemSetup that is used for creating patches data.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.patches.AbstractPatchesSystemSetup
BOOLEAN_FALSE, BOOLEAN_TRUE
-
-
Constructor Summary
Constructors Constructor Description PatchesDemoSystemSetup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateEssentialData(SystemSetupContext setupContext)Method to create initial objects which will be called by system creator during initialization and system update.voidcreateProjectData(SystemSetupContext setupContext)Implement this method to create data that is used in your project.java.util.List<SystemSetupParameter>getInitializationOptions()Iterates through list of patches which is configured in spring.-
Methods inherited from class de.hybris.platform.patches.AbstractPatchesSystemSetup
createBooleanSystemSetupParameter, createFalseBooleanValueSystemSetupParameter, createSystemSetupParameterBasedOnExecutionInfo, createSystemSetupParameterBasedOnNotSelectedProperty, executePatchBasedOnConfiguration, executePatchBasedOnDataType, executePatchBasedOnNotSelectedProperty, executePatches, executePatchesBasedOnConfiguration, executePatchesBasedOnSetupContext, executeVersionOnPatch, getBooleanValueForGivenKey, getSystemSetupParameter, isPatchHidden, isPatchNotSelected, isPatchRerunable, isPatchRerunableFunctionalityEnabled, isPatchSelected, setPatches, setPatchExecutionService
-
-
-
-
Method Detail
-
createEssentialData
@SystemSetup(type=ESSENTIAL, process=ALL) public void createEssentialData(SystemSetupContext setupContext)
Description copied from class:AbstractPatchesSystemSetupMethod to create initial objects which will be called by system creator during initialization and system update. It sets jsp context as a ThreadLocal variable (it is needed for logging data in hac console) and removes after all Patches are executed.- Overrides:
createEssentialDatain classAbstractPatchesSystemSetup- Parameters:
setupContext- the context provides the selected parameters and values
-
createProjectData
@SystemSetup(type=PROJECT, process=ALL) public void createProjectData(SystemSetupContext setupContext)
Implement this method to create data that is used in your project. This method will be called during the system initialization.- Overrides:
createProjectDatain classAbstractPatchesSystemSetup- Parameters:
setupContext- the context provides the selected parameters and values
-
getInitializationOptions
@SystemSetupParameterMethod public java.util.List<SystemSetupParameter> getInitializationOptions()
Description copied from class:AbstractPatchesSystemSetupIterates through list of patches which is configured in spring. Checks configuration for each Patch and based on it creates system setup parameter with default value.- Overrides:
getInitializationOptionsin classAbstractPatchesSystemSetup- Returns:
List<SystemSetupParameter>which should be visible in hac console
-
-