Package de.hybris.platform.patches
Interface Patch
-
- All Known Subinterfaces:
DemoPatch,SimpleDemoPatch
- All Known Implementing Classes:
AbstractDemoPatch,AbstractPatch,MajorErrorPatch,MinorErrorPatch,Patch1x0,Patch2x0,Patch2x1
public interface PatchInterface for all patches that needs to be updated on running system.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidcreateEssentialData()Executes patch during project essential data stepvoidcreateProjectData(StructureState structureState)Execute Patch with given structureState.java.lang.StringgetPatchDescription()Returns Patch description.java.lang.StringgetPatchId()Returns unique patch id (e.g PD_V_1.0.1).java.lang.StringgetPatchName()Returns Patch name.ReleasegetRelease()Gets release that patch is part of.StructureStategetStructureState()GetsStructureStatefrom this patch
-
-
-
Method Detail
-
createProjectData
void createProjectData(StructureState structureState)
Execute Patch with given structureState.- Parameters:
structureState- that should be used for creating project data
-
getPatchId
java.lang.String getPatchId()
Returns unique patch id (e.g PD_V_1.0.1).- Returns:
- patch id
-
getPatchName
java.lang.String getPatchName()
Returns Patch name.- Returns:
- patch name (visible in admin console)
-
getPatchDescription
java.lang.String getPatchDescription()
Returns Patch description.- Returns:
- description what this patch is about
-
getRelease
Release getRelease()
Gets release that patch is part of.- Returns:
- release that patch is part of
-
getStructureState
StructureState getStructureState()
GetsStructureStatefrom this patch- Returns:
StructureStatefrom this patch
-
createEssentialData
default void createEssentialData()
Executes patch during project essential data step
-
-