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 Details

    • createProjectData

      void createProjectData(StructureState structureState)
      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()
      Gets StructureState from this patch
      Returns:
      StructureState from this patch
    • createEssentialData

      default void createEssentialData()
      Executes patch during project essential data step