Package de.xima.fc.update.updates
Class I18nVariableMigrationUpdate
- java.lang.Object
 - 
- de.xima.fc.update.updates.I18nVariableMigrationUpdate
 
 
- 
- All Implemented Interfaces:
 IOrderable,ISystemUpdate,Comparable<IOrderable>
public class I18nVariableMigrationUpdate extends Object implements ISystemUpdate
System update for migration old text-templates 'FD2_I18N' to new 'I18N_VARIABLE' templates.- Author:
 - XIMA MEDIA GmbH
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringKEY_DEFAULT 
- 
Constructor Summary
Constructors Constructor Description I18nVariableMigrationUpdate() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexec()Executes the system updateStringgetDescription(Locale loc)Gets an Description of the update which should be shown in the ui.StringgetUUID()Gets an String for identifying an update.booleanneedsToRun()Checks if a template from type "I18N_VARIABLE" exists for every cleint in the system.- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface de.xima.fc.listener.IOrderable
compareTo, shouldBeAfter 
 - 
 
 - 
 
- 
- 
Field Detail
- 
KEY_DEFAULT
public static final String KEY_DEFAULT
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getUUID
public String getUUID()
Description copied from interface:ISystemUpdateGets an String for identifying an update. This String should not be longer than 36 chars and should not be changed, otherwise the update may run multiple times!- Specified by:
 getUUIDin interfaceISystemUpdate- Returns:
 StringUUID of the update
 
- 
getDescription
public String getDescription(Locale loc)
Description copied from interface:ISystemUpdateGets an Description of the update which should be shown in the ui. The description will also be stored in the database with an max of 1020 chars and the localeCmnConst.DFLT_LOCALE- Specified by:
 getDescriptionin interfaceISystemUpdate- Parameters:
 loc-Localethe current ui locale- Returns:
 String
 
- 
needsToRun
public boolean needsToRun()
Checks if a template from type "I18N_VARIABLE" exists for every cleint in the system. If not, a new template of type "I18N_VARIABLE" with the values from the text template with message code "FD2_I18N" will be created.- Specified by:
 needsToRunin interfaceISystemUpdate- Returns:
 Booleanif the update is needed
 
- 
exec
public void exec()
Description copied from interface:ISystemUpdateExecutes the system update- Specified by:
 execin interfaceISystemUpdate
 
 - 
 
 -