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

Gaetan Boismal
16.59.2016 1932d41262099a16f43749a90677366818b3664c
refs
author Gaetan Boismal <gaetan.boismal@forgerock.com>
Tuesday, February 16, 2016 15:59 +0100
committer Gaetan Boismal <gaetan.boismal@forgerock.com>
Tuesday, March 1, 2016 10:44 +0100
commit1932d41262099a16f43749a90677366818b3664c
tree 20e0b745af3f2fbd711d868f333dae36b6be3f12 tree | zip | gz
parent eae9f3716a436d15b370b170de06c9d53c6b6c37 view | diff
OPENDJ-2701 Code cleanup

Refactor LDAPConnectionConsoleInteraction

* Split very long methods (run(), getKeyManagerInternal() and
getTrustManagerInternal()) in smaller ones, trying to keep the following
pattern for each parameter to resolve:
1. Initialize the parameter value with command line (if present)
2. Interactive prompt for the argument value (if the application is
interactive and the argument has not been given in the command line)
3. Store the argument value in the CommandBuilder

* Make public fields private and create getters in
SecureConnectionCliArgs
* Other minor cleanup actions
12 files modified
2957 ■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/guitools/uninstaller/UninstallCliHelper.java 71 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/guitools/uninstaller/Uninstaller.java 9 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/guitools/uninstaller/UninstallerArgumentParser.java 17 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/admin/client/cli/SecureConnectionCliArgs.java 295 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/admin/client/cli/SecureConnectionCliParser.java 120 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/tools/dsreplication/ReplicationCliArgumentParser.java 92 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/tools/dsreplication/ReplicationCliMain.java 20 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/tools/status/StatusCli.java 8 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/tools/status/StatusCliArgumentParser.java 10 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/util/args/LDAPConnectionArgumentParser.java 78 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/util/cli/LDAPConnectionConsoleInteraction.java 2227 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/messages/org/opends/messages/tool.properties 10 ●●●●● diff | view | raw | blame | history