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

Gaetan Boismal
27.10.2015 e3d72dfc7b59d735702027b7cb892260f259f701
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
commite3d72dfc7b59d735702027b7cb892260f259f701
tree 3def60dbfd5a716f6a9c5bf1d7cc0d069583eaf1 tree | zip | gz
parent 67bd8e8a277da302b88370271b7bcc91c551c667 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-server-legacy/src/main/java/org/opends/server/tools/ConfigureDS.java 1800 ●●●● diff | view | raw | blame | history