public class ThemeToFormVersionUpdate extends Object implements ISystemUpdate
FormVersion.getTheme(). Up until version 5, the theme was
stored directly inside the persist JSON. Starting with version 6, the theme receives its own database column, which
makes it easier and faster to read the theme, as it does not require accessing the persist JSON file data and parsing
the JSON. This update iterates over each form version without a theme (database column theme set to
null), attempts to parse the persist JSON and retrieve the theme, and updates the db column theme.| Constructor and Description |
|---|
ThemeToFormVersionUpdate() |
| Modifier and Type | Method and Description |
|---|---|
void |
exec()
Executes the system update
|
String |
getDescription(Locale loc)
Gets an Description of the update which should be shown in the ui.
|
String |
getUUID()
Gets an String for identifying an update.
|
boolean |
needsToRun()
Checks if an update needs to run at all.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompareTo, shouldBeAfterpublic String getUUID()
ISystemUpdategetUUID in interface ISystemUpdateString UUID of the updatepublic String getDescription(Locale loc)
ISystemUpdateCmnConst.DFLT_LOCALEgetDescription in interface ISystemUpdateloc - Locale the current ui localeStringpublic boolean needsToRun()
ISystemUpdateneedsToRun in interface ISystemUpdateBoolean if the update is neededpublic void exec()
ISystemUpdateexec in interface ISystemUpdateCopyright © 2019 XIMA MEDIA GmbH. All rights reserved.