public class ReplicationCliArgumentParser extends SecureConnectionCliParser
com.forgerock.opendj.cli.SubCommandArgumentParser.SubCommandArgumentParserBuilder
com.forgerock.opendj.cli.ArgumentParser.ArgumentParserBuilder, com.forgerock.opendj.cli.ArgumentParser.Builder<P extends com.forgerock.opendj.cli.ArgumentParser,B extends com.forgerock.opendj.cli.ArgumentParser.Builder<P,B>>
Modifier and Type | Field and Description |
---|---|
static String |
CONFIGURE_REPLICATION_SUBCMD_NAME
The text of the configure replication subcommand.
|
static String |
INITIALIZE_ALL_REPLICATION_SUBCMD_NAME
The text of the initialize all replication subcommand.
|
noPropertiesFileArg, propertiesFileArg, secureArgsList, verboseArg
Modifier and Type | Method and Description |
---|---|
String |
getAdministratorUID()
Returns the Administrator UID explicitly provided in the command-line.
|
Set<Dn> |
getBaseDNs()
Returns the list of base DNs provided by the user with the selected
SubCommand or an empty set if either
no subcommand has been selected, the subcommand does not accept the option or the option
has not been provided on the command line. |
protected void |
initializeGlobalArguments(Collection<com.forgerock.opendj.cli.Argument> args,
com.forgerock.opendj.cli.ArgumentGroup argGroup)
Initialize the global options with the provided set of arguments.
|
boolean |
isQuiet()
Tells whether the user specified to have a quite operation or not.
|
int |
validateGlobalOptions(LocalizableMessageBuilder buf)
Indication if provided global options are validate.
|
createGlobalArguments, getBindDN, getBindPassword, getConnectTimeout, getHostName, getPort, getTrustManager, initializeGlobalArguments, isVerbose
addArgument, builder, defaultSubCommand, getSelectedSubCommand, getSubCommand, getSubCommands, setUsageArgument, setUsageGroupArgument
addArgument, addDefaultArgument, deprecatedParseArguments, getArgumentForLongId, getArguments, getBindPassword, getDocSubcommandsDescriptionSupplement, getDocToolDescriptionSupplement, getLdapConnectionArguments, getScriptNameOrJava, getShortToolDescription, getTrailingArguments, noPromptArgument, setDocSubcommandsDescriptionSupplement, setDocToolDescriptionSupplement, setShortToolDescription, setVersionHandler, usageOrVersionDisplayed
public static final String CONFIGURE_REPLICATION_SUBCMD_NAME
public static final String INITIALIZE_ALL_REPLICATION_SUBCMD_NAME
public int validateGlobalOptions(LocalizableMessageBuilder buf)
SecureConnectionCliParser
validateGlobalOptions
in class SecureConnectionCliParser
buf
- The LocalizableMessageBuilder
to write the error message.protected void initializeGlobalArguments(Collection<com.forgerock.opendj.cli.Argument> args, com.forgerock.opendj.cli.ArgumentGroup argGroup)
initializeGlobalArguments
in class SecureConnectionCliParser
args
- the arguments to use to initialize the global options.argGroup
- the group to which args will be added. arguments.public boolean isQuiet()
true
if the user specified to have a quite operation and false
otherwise.public String getAdministratorUID()
getAdministratorUID
in class SecureConnectionCliParser
public Set<Dn> getBaseDNs()
SubCommand
or an empty set if either
no subcommand has been selected, the subcommand does not accept the option or the option
has not been provided on the command line.
Since OPENDJ-3804 the option is local to sub-commands.
SubCommand
or an empty set if either
no subcommand has been selected, the subcommand does not accept the option or the option
has not been provided on the command line.Copyright 2010-2018 ForgeRock AS.