Class InitMimeCheckActivationUpdate_8_1

  • All Implemented Interfaces:
    IOrderable, ISystemUpdate, Comparable<IOrderable>

    public class InitMimeCheckActivationUpdate_8_1
    extends Object
    implements ISystemUpdate
    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:
    CmnConst.SystemProperty.UPLOAD_DISABLE_MIMECHECK
    • Constructor Detail

      • InitMimeCheckActivationUpdate_8_1

        public InitMimeCheckActivationUpdate_8_1()
    • Method Detail

      • getUUID

        public String getUUID()
        Description copied from interface: ISystemUpdate
        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!
        Specified by:
        getUUID in interface ISystemUpdate
        Returns:
        String UUID of the update
      • getVersion

        public SystemUpdateVersion getVersion()
        Description copied from interface: ISystemUpdate
        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.
        Specified by:
        getVersion in interface ISystemUpdate
        Returns:
        The formcycle version of this update.
      • needsToRun

        public boolean needsToRun()
        Description copied from interface: ISystemUpdate
        Checks if an update needs to run at all. If not, the update will be marked as run and never performed at all.
        Specified by:
        needsToRun in interface ISystemUpdate
        Returns:
        Boolean if the update is needed
      • exec

        public void exec()
        Description copied from interface: ISystemUpdate
        Executes the system update
        Specified by:
        exec in interface ISystemUpdate