mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

kenneth_suter
12.41.2007 d00c43b28a6cac711412231562b74e135255d3de
refs
author kenneth_suter <kenneth_suter@localhost>
Thursday, July 12, 2007 16:41 +0200
committer kenneth_suter <kenneth_suter@localhost>
Thursday, July 12, 2007 16:41 +0200
commitd00c43b28a6cac711412231562b74e135255d3de
tree e8a07dfb007b0e3a074a9aee1c9a87850131b4bc tree | zip | gz
parent 7670b1e8a364298ab5343fefd6fefcfa0c044f0a view | diff
This commit addresses issue 1851 "upgrader does not handle new config entries also present in current configuration".  This issue is somewhat of a corner case but this code will allow a user to better deal with problems that might arise migrating the configuration or schema of a server.

Prior to this commit, migration of schema and/or configuration was handled all at once by a utility class so if there were any problems the upgrade would fail with a generic error. With this commit, changes are processed one at a time by the upgrader itself so if there are problems with a particular change the upgrader can prompt explain the problem to the user and prompt for further direction (cancel, continue anyway, retry). There are still ways in which the experience could be improved but I'll leave this for the future if ever since I wouldn't expect this code to be exercised much.

Here a new class MigrationManager is introduced to consolidate the logic for migration into a single class to improve testability and reduce the size of the already bloated Upgrader class.

This commit also addresses issue 1969 to remove a erroneous Next button on the wizard itself.
1 files added
8 files modified
757 ■■■■■ changed files
opends/src/quicksetup/org/opends/quicksetup/Application.java 2 ●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/CliUserInteraction.java 4 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/Constants.java 6 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/resources/Resources.properties 13 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/ui/GuiApplication.java 4 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/upgrader/MigrationManager.java 358 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/upgrader/Upgrader.java 144 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/util/InProcessServerController.java 192 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/util/Utils.java 34 ●●●●● diff | view | raw | blame | history