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

Gaetan Boismal
27.10.2015 911b4d52497cf4a285779bb5cd4a92d548935215
refs
author Gaetan Boismal <gaetan.boismal@forgerock.com>
Friday, March 27, 2015 15:10 +0100
committer Gaetan Boismal <gaetan.boismal@forgerock.com>
Friday, March 27, 2015 15:10 +0100
commit911b4d52497cf4a285779bb5cd4a92d548935215
tree c4403d5d32b139a0c5a44e16261cdfc366d014fc tree | zip | gz
parent f280510f35d00ca2cebf05308989771e799cddbf view | diff
OPENDJ-1714 (CR-6442) Refactor ConfigureDS.java

* ConfigureDS.java
** Made ConfigureDS call non static to allow methods extraction
** Extracted methods:
*** initializedArguments()
*** parseArguments()
*** checkGlobalArguments()
*** checkPortArguments()
Use a loop instead of code duplication in this method
*** updateBaseDNs(baseDNs);
*** updateLdapPort();
*** updateAdminConnectorPort();
*** updateLdapSecurePort();
*** updateJMXport();
*** updateStartTLS();
*** updateKeyManager();
*** updateTrustManager();
*** updateRootUser(rootDN, rootPW);
*** addFQDNDigestMD5();
*** updateCryptoCipher();
*** writeUpdatedConfiguration();
*** initializeDirectoryServer()
** In key and trust provider related check/update config methods:
*** Create common method for both when it was possible
*** Extracted more little method to prevent code redundancy
** Add a custom ConfigureDSException to handle error message print
** Inline some local variables
** Format the whole file
1 files modified
1800 ■■■■ changed files
opendj-sdk/opendj-server-legacy/src/main/java/org/opends/server/tools/ConfigureDS.java 1800 ●●●● diff | view | raw | blame | history