| | |
| | | * If there is a problem with any of the parameters used to create this argument. |
| | | */ |
| | | public static BooleanArgument getVerbose() throws ArgumentException { |
| | | final BooleanArgument verbose = new BooleanArgument("verbose", 'v', "verbose", INFO_DESCRIPTION_VERBOSE.get()); |
| | | final BooleanArgument verbose = new BooleanArgument("verbose", OPTION_SHORT_VERBOSE, "verbose", |
| | | INFO_DESCRIPTION_VERBOSE.get()); |
| | | verbose.setPropertyName("verbose"); |
| | | return verbose; |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the "Continue On Error" boolean argument. |
| | | * Returns the "Continue On Error" boolean argument. <br> |
| | | * <i> N.B : the 'c' short option is also used by cleanupservice, compress.</i> |
| | | * |
| | | * @return The "continueOnError" argument. |
| | | * @throws ArgumentException |
| | |
| | | * If there is a problem with any of the parameters used to create this argument. |
| | | */ |
| | | public static StringArgument getControl() throws ArgumentException { |
| | | return new StringArgument("control", 'J', "control", false, true, true, INFO_LDAP_CONTROL_PLACEHOLDER.get(), |
| | | null, null, INFO_DESCRIPTION_CONTROLS.get()); |
| | | return new StringArgument(OPTION_LONG_CONTROL.toLowerCase(), OPTION_SHORT_CONTROL, OPTION_LONG_CONTROL, false, |
| | | true, true, INFO_LDAP_CONTROL_PLACEHOLDER.get(), null, null, INFO_DESCRIPTION_CONTROLS.get()); |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | /** |
| | | * Returns the "targetldif" string argument. |
| | | * <br><i> N.B : the 't' short option is also used by timelimit, |
| | | * testonly, trustmanagerproviderdn, stoptime.</i> |
| | | * |
| | | * @param description |
| | | * The description of this argument. |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the "timelimit" boolean argument. |
| | | * Returns the "timelimit" boolean argument. <br> |
| | | * <i> N.B : the 't' short option is also used by targetldif, testonly, trustmanagerproviderdn, stoptime.</i> |
| | | * |
| | | * @return The "timelimit" argument. |
| | | * @throws ArgumentException |
| | |
| | | |
| | | /** |
| | | * Returns the "test only" boolean argument. |
| | | * <br><i> N.B : the 't' short option is also used by targetldif, timelimit, |
| | | * trustmanagerproviderdn, stoptime.</i> |
| | | * |
| | | * @return The "test only" argument. |
| | | * @throws ArgumentException |
| | |
| | | |
| | | /** |
| | | * Returns the "trustmanagerproviderdn" string argument. |
| | | * <br><i> N.B : the 't' short option is also used by targetldif, timelimit, |
| | | * testonly, stoptime.</i> |
| | | * |
| | | * @return The "trustmanagerproviderdn" argument. |
| | | * @throws ArgumentException |
| | |
| | | * If there is a problem with any of the parameters used to create this argument. |
| | | */ |
| | | public static StringArgument getTrustStorePassword() throws ArgumentException { |
| | | return new StringArgument("truststorepw", 'T', OPTION_LONG_TRUSTSTORE_PWD, false, false, true, |
| | | INFO_TRUSTSTORE_PWD_PLACEHOLDER.get(), null, OPTION_LONG_TRUSTSTORE_PWD, |
| | | return new StringArgument("truststorepw", OPTION_SHORT_TRUSTSTORE_PWD, OPTION_LONG_TRUSTSTORE_PWD, false, |
| | | false, true, INFO_TRUSTSTORE_PWD_PLACEHOLDER.get(), null, OPTION_LONG_TRUSTSTORE_PWD, |
| | | INFO_DESCRIPTION_TRUSTSTOREPASSWORD.get()); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the "cleanupservice" string argument. |
| | | * Returns the "cleanupservice" string argument. <br> |
| | | * <i> N.B : the 'c' short option is also used by continueOnError, compress.</i> |
| | | * |
| | | * @return The "cleanupservice" argument. |
| | | * @throws ArgumentException |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the "CLI" boolean argument. |
| | | * Returns the "CLI" boolean argument. <br> |
| | | * <i> N.B : the 'i' short option is also used by encoding.</i> |
| | | * |
| | | * @return The "CLI" argument. |
| | | * @throws ArgumentException |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the "configfile" string argument. |
| | | * Returns the "configfile" string argument. <br> |
| | | * <i> N.B : the 'f' short option is also used by filename</i> |
| | | * |
| | | * @return The "configfile" argument. |
| | | * @throws ArgumentException |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the "backendid" string argument. |
| | | * Returns the "backendid" string argument. <br> |
| | | * <i> N.B : the 'n' short option is also used by newGroupName, no-prompt.</i> |
| | | * |
| | | * @return The "backendid" argument. |
| | | * @throws ArgumentException |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the "backupdirectory" string argument. |
| | | * Returns the "backupdirectory" string argument. <br> |
| | | * <i> N.B : the 'd' short option is also used by sampledata, disableservice.</i> |
| | | * |
| | | * @return The "backupdirectory" argument. |
| | | * @throws ArgumentException |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the "backupall" boolean argument. |
| | | * Returns the "backupall" boolean argument. <br><i> N.B : the 'a' short option is also used by addbaseentry, |
| | | * defaultAdd.</i> |
| | | * |
| | | * @return The "backupall" argument. |
| | | * @throws ArgumentException |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the "bindDN" string argument. |
| | | * Returns the "bindDN" string argument. <br/> |
| | | * <i> N.B : the 'D' short option is also used by rootUserDN.</i> |
| | | * |
| | | * @param defaultBindDN |
| | | * The default bind DN. |
| | |
| | | public static StringArgument getBindDN(final String defaultBindDN) throws ArgumentException { |
| | | return new StringArgument("bindDN", OPTION_SHORT_BINDDN, OPTION_LONG_BINDDN, false, false, true, |
| | | INFO_BINDDN_PLACEHOLDER.get(), defaultBindDN, OPTION_LONG_BINDDN, INFO_DESCRIPTION_BINDDN.get()); |
| | | |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | /** |
| | | * Returns the "add base entry" boolean argument. |
| | | * <br><i> N.B : the 'a' short option is also used by backupall, defaultAdd.</i> |
| | | * |
| | | * @return The "addBaseEntry" argument. |
| | | * @return The "addbaseentry" argument. |
| | | * @throws ArgumentException |
| | | * If there is a problem with any of the parameters used to create this argument. |
| | | */ |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the "rejected import ldif file" string argument. |
| | | * Returns the "rejectfile" string argument. <br> |
| | | * <i> N.B : the 'R' short option is also used by restart, serverRoot.</i> |
| | | * |
| | | * @return The "rejectFile" argument. |
| | | * @return The "rejectfile" argument. |
| | | * @throws ArgumentException |
| | | * If there is a problem with any of the parameters used to create this argument. |
| | | */ |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the "remote" boolean argument. |
| | | * Returns the "remote" boolean argument. <br> |
| | | * <i> N.B : the 'r' short option is also used by useSASLExternal, stopreason.</i> |
| | | * |
| | | * @return The "remote" argument. |
| | | * @throws ArgumentException |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the "restart" boolean argument. |
| | | * Returns the "restart" boolean argument. <br> |
| | | * <i> N.B : the 'R' short option is also used by rejectfile, serverRoot.</i> |
| | | * |
| | | * @return The "restart" argument. |
| | | * @throws ArgumentException |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the "sample data" integer argument. |
| | | * Returns the "sample data" integer argument. <br> |
| | | * <i> N.B : the 'd' short option is also used by backupdirectory, disableservice.</i> |
| | | * |
| | | * @return The "sampleData" argument. |
| | | * @throws ArgumentException |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the "sasloption" string argument. |
| | | * Returns the "sasloption" string argument. <br> |
| | | * <i> N.B : the 'o' short option is also used by outputLDIF.</i> |
| | | * |
| | | * @return The "sasloption" argument. |
| | | * @throws ArgumentException |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the "serverRoot" string argument. |
| | | * Returns the "serverRoot" string argument. <br> |
| | | * <i> N.B : the 'R' short option is also used by rejectfile, restart.</i> |
| | | * |
| | | * @return The "serverRoot" argument. |
| | | * @throws ArgumentException |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the "servicestatey" boolean argument. |
| | | * Returns the "servicestate" boolean argument. <br> |
| | | * <i> N.B : the 's' short option is also used by sourceldif, randomSeed, script-friendly.</i> |
| | | * |
| | | * @return The "servicestate" argument. |
| | | * @throws ArgumentException |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the "script-friendly" boolean argument. |
| | | * Returns the "script-friendly" boolean argument. <i> N.B : the 's' short option is also used by servicestate, |
| | | * sourceldif, randomSeed.</i> |
| | | * |
| | | * @return The "script-friendly" argument. |
| | | * @throws ArgumentException |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the "sourceldif" string argument. |
| | | * Returns the "sourceldif" string argument. <br> |
| | | * <i> N.B : the 's' short option is also used by servicestate, randomSeed, script-friendly.</i> |
| | | * |
| | | * @param description |
| | | * The description of this argument. |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the "stopreason" string argument. |
| | | * Returns the "stopreason" string argument. <br> |
| | | * <i> N.B : the 'r' short option is also used by useSASLExternal, remote.</i> |
| | | * |
| | | * @return The "stopreason" argument. |
| | | * @throws ArgumentException |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the "stopTime" string argument. |
| | | * Returns the "stopTime" string argument. <br><i> N.B : the 't' short option is also used by targetldif, timelimit, |
| | | * testonly, trustmanagerproviderdn.</i> |
| | | * |
| | | * @return The "stopTime" argument. |
| | | * @throws ArgumentException |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the "directory manager DN" string argument. |
| | | * Returns the "rootUserDN" string argument. <br> |
| | | * <i> N.B : the 'D' short option is also used by bindDN.</i> |
| | | * |
| | | * @return The "rootUserDN" argument. |
| | | * @throws ArgumentException |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the "encoding" string argument. |
| | | * Returns the "encoding" string argument. <br> |
| | | * <i> N.B : the 'i' short option is also used by cli</i> |
| | | * |
| | | * @return The "encoding" argument. |
| | | * @throws ArgumentException |
| | |
| | | |
| | | /** |
| | | * Returns the "defaultAdd" boolean argument. |
| | | * <br><i> N.B : the 'a' short option is also used by addbaseentry, defaultAdd.</i> |
| | | * |
| | | * @return The "defaultAdd" argument. |
| | | * @throws ArgumentException |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the "disableservice" boolean argument. |
| | | * Returns the "disableservice" boolean argument. <br> |
| | | * <i> N.B : the 'd' short option is also used by backupdirectory, sampledata.</i> |
| | | * |
| | | * @return The "disableservice" argument. |
| | | * @throws ArgumentException |
| | |
| | | |
| | | /** |
| | | * Returns the "filename" string argument. |
| | | * |
| | | * <i> N.B : the 'f' short option is also used by configfile</i> |
| | | * @param description |
| | | * The description of this argument. |
| | | * @return The "filename" argument. |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the "ldaps port" integer argument. |
| | | * Returns the "ldaps port" integer argument. <br> |
| | | * <i> N.B : the 'Z' short option is also used by useSSL.</i> |
| | | * |
| | | * @param defaultSecurePort |
| | | * Default value for the LDAPS port. |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the "useSASLExternal" boolean argument. |
| | | * Returns the "useSASLExternal" boolean argument. <br> |
| | | * <i> N.B : the 'r' short option is also used by stopreason, remote.</i> |
| | | * |
| | | * @return The "useSASLExternal" argument. |
| | | * @throws ArgumentException |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the "useSSL" boolean argument. |
| | | * Returns the "useSSL" boolean argument. <br> |
| | | * <i> N.B : the 'Z' short option is also used by ldapsport.</i> |
| | | * |
| | | * @return The "useSSL" argument. |
| | | * @throws ArgumentException |