Interface ISystemUpdate

    • Method Detail

      • getUUID

        String getUUID()
        Gets a string for identifying the update. This string should not be longer than 36 chars and should not be changed, otherwise the update may run multiple times!
        Returns:
        String UUID of the update
      • getDescription

        String getDescription​(Locale loc)
        Gets a description of the update which should be shown in the UI. The description will also be stored in the database with a maximum of 1020 chars and the locale CmnConst.DFLT_LOCALE
        Parameters:
        loc - Locale the current ui locale
        Returns:
        String
      • needsToRun

        default boolean needsToRun()
        Checks if an update needs to run at all. If not, the update will be marked as run and never performed at all.
        Returns:
        Boolean if the update is needed
      • exec

        void exec()
        Executes the system update
      • getVersion

        SystemUpdateVersion getVersion()
        Gets the formcycle version where the update was introduced. System updates are run in order of their version. Updates with the same version do not have any order by default, but can be ordered by placing a SequenceOrder annotation at the class level.
        Returns:
        The formcycle version of this update.