OPENDJ-1887 OPENDJ-435 Add default baseDN in setup
* InstallDS.java
** Add baseDNs argument default value on the fly when user is about to be prompted.
* Installation.java
** Add default base DN constant (dc=example,dc=com)
| | |
| | | public static final String[] REQUIRED_DIRECTORIES = new String[] { |
| | | CONFIG_PATH_RELATIVE, DATABASES_PATH_RELATIVE, LIBRARIES_PATH_RELATIVE }; |
| | | |
| | | |
| | | /** |
| | | * The default base DN prompted to user in setup interactive mode. |
| | | */ |
| | | public static final String DEFAULT_INTERACTIVE_BASE_DN = "dc=example,dc=com"; |
| | | |
| | | /** |
| | | * Performs validation on the specified file to make sure that it is an actual |
| | |
| | | return NewSuffixOptions.createEmpty(new LinkedList<String>()); |
| | | } |
| | | |
| | | // Add default value for base DN on first prompt |
| | | if (argParser.baseDNArg.getDefaultValue() == null) |
| | | { |
| | | argParser.baseDNArg.setDefaultValue(Installation.DEFAULT_INTERACTIVE_BASE_DN); |
| | | } |
| | | // Check the validity of the base DNs |
| | | final List<String> baseDNs = promptIfRequiredForDNs(argParser.baseDNArg, INFO_INSTALLDS_PROMPT_BASEDN.get(), true); |
| | | return promptIfRequiredForDataOptions(baseDNs); |