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, wait
compareTo, shouldBeAfter
public String getUUID()
ISystemUpdate
getUUID
in interface ISystemUpdate
String
UUID of the updatepublic String getDescription(Locale loc)
ISystemUpdate
CmnConst.DFLT_LOCALE
getDescription
in interface ISystemUpdate
loc
- Locale
the current ui localeString
public boolean needsToRun()
ISystemUpdate
needsToRun
in interface ISystemUpdate
Boolean
if the update is neededpublic void exec()
ISystemUpdate
exec
in interface ISystemUpdate
Copyright © 2019 XIMA MEDIA GmbH. All rights reserved.