Class InitMimeCheckActivationUpdate_8_1
java.lang.Object
de.xima.fc.update.updates.v8_1.InitMimeCheckActivationUpdate_8_1
- All Implemented Interfaces:
IOrderable, ISystemUpdate, Comparable<IOrderable>
System update that sets the initial value of the 'deactivate content type verification for uploads' system property.
The greneral proceeding (as specified by #2099) is:
- new Formcycle install: initially activate the content type verification
- Formcycle update: initially deactivate the content type verification
- Since:
- 8.1.0
- Author:
- XIMA MEDIA GmbH, Dresden
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexec()Executes the system updategetDescription(Locale loc) Gets a description of the update which should be shown in the UI.getUUID()Gets a string for identifying the update.Gets the formcycle version where the update was introduced.booleanChecks if an update needs to run at all.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IOrderable
compareTo, shouldBeAfter
-
Constructor Details
-
InitMimeCheckActivationUpdate_8_1
public InitMimeCheckActivationUpdate_8_1()
-
-
Method Details
-
getUUID
Description copied from interface:ISystemUpdateGets 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!- Specified by:
getUUIDin interfaceISystemUpdate- Returns:
StringUUID of the update
-
getDescription
Description copied from interface:ISystemUpdateGets 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 localeCmnConst.DFLT_LOCALE- Specified by:
getDescriptionin interfaceISystemUpdate- Parameters:
loc-Localethe current ui locale- Returns:
String
-
getVersion
Description copied from interface:ISystemUpdateGets 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 aSequenceOrderannotation at the class level.- Specified by:
getVersionin interfaceISystemUpdate- Returns:
- The formcycle version of this update.
-
needsToRun
public boolean needsToRun()Description copied from interface:ISystemUpdateChecks if an update needs to run at all. If not, the update will be marked as run and never performed at all.- 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
-