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 Patch
Interface for all patches that needs to be updated on running system.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidExecutes patch during project essential data stepvoidcreateProjectData(StructureState structureState) Execute Patch with given structureState.Returns Patch description.Returns unique patch id (e.g PD_V_1.0.1).Returns Patch name.Gets release that patch is part of.GetsStructureStatefrom this patch
-
Method Details
-
createProjectData
Execute Patch with given structureState.- Parameters:
structureState- that should be used for creating project data
-
getPatchId
String getPatchId()Returns unique patch id (e.g PD_V_1.0.1).- Returns:
- patch id
-
getPatchName
String getPatchName()Returns Patch name.- Returns:
- patch name (visible in admin console)
-
getPatchDescription
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
-