Package com.im.df.impl.db.sprovider
Class UpgradeIJCSchema
- java.lang.Object
-
- com.im.df.impl.db.sprovider.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 Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanUp(com.im.commons.progress.DFEnvironmentRO env)
protected Stack<com.im.df.impl.db.sprovider.StateCleaner>
getCleaners()
String
getName()
String
getNextPhaseCommand()
String
getNextPhaseProgressName()
Object
getOptions()
DBImplSchemaProvider.PropsProvider
getPropsProvider()
com.im.df.api.DFSchemaProvider.StepInfo
getResult()
com.im.df.api.ddl.DFSchema
getSchema()
boolean
isInitial()
com.im.df.impl.db.sprovider.SchemaProviderImpl.StateEx
proceedToNextState(com.im.commons.progress.DFEnvironmentRO env)
boolean
requiresConfirmation()
protected void
setLastStepInfo(com.im.df.api.DFSchemaProvider.StepInfo lastStepInfo)
String
toString()
void
upgradeIJCSChema(com.im.commons.progress.DFEnvironmentRO env)
-
-
-
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 interfacecom.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)
-
getPropsProvider
public final DBImplSchemaProvider.PropsProvider getPropsProvider()
-
getName
public final String getName()
- Specified by:
getName
in interfacecom.im.df.api.DFSchemaProvider.State
-
getNextPhaseCommand
public final String getNextPhaseCommand()
- Specified by:
getNextPhaseCommand
in interfacecom.im.df.api.DFSchemaProvider.State
-
getNextPhaseProgressName
public final String getNextPhaseProgressName()
- Specified by:
getNextPhaseProgressName
in interfacecom.im.df.api.DFSchemaProvider.State
-
getSchema
public com.im.df.api.ddl.DFSchema getSchema()
- Specified by:
getSchema
in interfacecom.im.df.api.DFSchemaProvider.State
-
getResult
public final com.im.df.api.DFSchemaProvider.StepInfo getResult()
- Specified by:
getResult
in interfacecom.im.df.api.DFSchemaProvider.State
-
isInitial
public boolean isInitial()
- Specified by:
isInitial
in interfacecom.im.df.api.DFSchemaProvider.State
-
cleanUp
public final void cleanUp(com.im.commons.progress.DFEnvironmentRO env)
-
-