Class UpgradeIJCSchema

  • All Implemented Interfaces:
    com.im.df.api.DFSchemaProvider.State

    public class UpgradeIJCSchema
    extends Object
    This step checks whether the database version is up-to-date. If not, presents an option step asking the user to confirm upgrade. Note - the user is NOT YET logged into IJC, just into the DB. Even the user login may fail, DB schema upgrades must be done before all other DB operations. The upgrade to 5.12 behaves in non standard way with regards to GUI. If some users are logged-in during the upgrade, a dialog pops up. The correct way of handling this would be to create options with customizer. Because this problem was pointed out late during the release cycle, it was not fixed. Shame on me. - Filip
    Author:
    Petr Hamernik
    • Constructor Detail

      • UpgradeIJCSchema

        public UpgradeIJCSchema​(DBImplSchemaProvider.PropsProvider propsProvider,
                                Stack<com.im.df.impl.db.sprovider.StateCleaner> cleaners,
                                org.springframework.security.core.Authentication auth,
                                org.springframework.context.ApplicationContext ctx,
                                Properties properties,
                                com.im.df.api.friend.server.SchemaRefreshProperties schemaRefreshProps)
    • Method Detail

      • getOptions

        public Object getOptions()
        Specified by:
        getOptions in interface com.im.df.api.DFSchemaProvider.State
      • proceedToNextState

        public com.im.df.impl.db.sprovider.SchemaProviderImpl.StateEx proceedToNextState​(com.im.commons.progress.DFEnvironmentRO env)
      • requiresConfirmation

        public boolean requiresConfirmation()
      • upgradeIJCSChema

        public void upgradeIJCSChema​(com.im.commons.progress.DFEnvironmentRO env)
      • getCleaners

        protected final Stack<com.im.df.impl.db.sprovider.StateCleaner> getCleaners()
      • setLastStepInfo

        protected final void setLastStepInfo​(com.im.df.api.DFSchemaProvider.StepInfo lastStepInfo)
      • getName

        public final String getName()
        Specified by:
        getName in interface com.im.df.api.DFSchemaProvider.State
      • getNextPhaseCommand

        public final String getNextPhaseCommand()
        Specified by:
        getNextPhaseCommand in interface com.im.df.api.DFSchemaProvider.State
      • getNextPhaseProgressName

        public final String getNextPhaseProgressName()
        Specified by:
        getNextPhaseProgressName in interface com.im.df.api.DFSchemaProvider.State
      • getSchema

        public com.im.df.api.ddl.DFSchema getSchema()
        Specified by:
        getSchema in interface com.im.df.api.DFSchemaProvider.State
      • getResult

        public final com.im.df.api.DFSchemaProvider.StepInfo getResult()
        Specified by:
        getResult in interface com.im.df.api.DFSchemaProvider.State
      • isInitial

        public boolean isInitial()
        Specified by:
        isInitial in interface com.im.df.api.DFSchemaProvider.State
      • cleanUp

        public final void cleanUp​(com.im.commons.progress.DFEnvironmentRO env)