public class UninstallerArgumentParser extends SecureConnectionCliParser
noPropertiesFileArg, propertiesFileArg, secureArgsList, showUsageArg, verboseArg| Constructor and Description |
|---|
UninstallerArgumentParser(String mainClassName,
LocalizableMessage toolDescription,
boolean longArgumentsCaseSensitive)
Creates a new instance of this argument parser with no arguments.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultAdministratorUID()
Returns the default Administrator UID value.
|
String |
getDefaultReferencedHostName()
Returns the default value for the Host name to update remote references as
provided in the command-line.
|
String |
getReferencedHostName()
Returns the Host name to update remote references as provided in the
command-line.
|
void |
initializeGlobalArguments(OutputStream outStream)
Initialize Global option.
|
boolean |
isCli()
Returns whether the command was launched in CLI mode or not.
|
boolean |
isForceOnError()
Tells whether the user specified to force on non critical error in the non
interactive mode.
|
boolean |
isInteractive()
Tells whether the user specified to have an interactive uninstall or not.
|
boolean |
isQuiet()
Tells whether the user specified to have a quiet uninstall or not.
|
boolean |
isVerbose()
Tells whether the user specified to have a verbose uninstall or not.
|
boolean |
removeAll()
Tells whether the user specified to remove all files.
|
boolean |
removeBackupFiles()
Tells whether the user specified to remove backup files.
|
boolean |
removeConfigurationFiles()
Tells whether the user specified to remove configuration files.
|
boolean |
removeDatabases()
Tells whether the user specified to remove database files.
|
boolean |
removeLDIFFiles()
Tells whether the user specified to remove LDIF files.
|
boolean |
removeLogFiles()
Tells whether the user specified to remove log files.
|
boolean |
removeServerLibraries()
Tells whether the user specified to remove library files.
|
int |
validateGlobalOptions(LocalizableMessageBuilder buf)
Indication if provided global options are validate.
|
createGlobalArguments, getAdministratorUID, getBindDN, getBindPassword, getBindPassword, getBindPassword, getConnectTimeout, getHostName, getPort, getTrustManager, initializeGlobalArguments, initializeGlobalArguments, useSSL, useStartTLS, validateGlobalOptionsaddGlobalArgument, addGlobalArgument, addLdapConnectionArgument, getGlobalArgument, getGlobalArgumentForLongID, getGlobalArgumentForShortID, getGlobalArgumentList, getGlobalArgumentsByLongID, getGlobalArgumentsByShortID, getSubCommand, getSubCommand, getSubCommands, getSubCommandUsage, getUsage, hasGlobalArgument, hasGlobalArgumentWithLongID, hasGlobalArgumentWithShortID, hasSubCommand, parseArguments, removeGlobalArgument, setUsageArgument, setUsageGroupArgument, setUsageHandleraddArgument, addArgument, addDefaultArgument, displayMessageAndUsageReference, getArgumentForLongID, getArgumentList, getBindPassword, getDocSubcommandsDescriptionSupplement, getDocToolDescriptionSupplement, getHelpUsageReference, getOptionsRefSect1, getShortToolDescription, getTrailingArguments, getUsageMessage, isUsageArgumentPresent, isVersionArgumentPresent, parseArguments, parseArguments, setDocSubcommandsDescriptionSupplement, setDocToolDescriptionSupplement, setFilePropertiesArgument, setNoPropertiesFileArgument, setShortToolDescription, setUsageArgument, setUsageOrVersionDisplayed, setVersionHandler, usageOrVersionDisplayedpublic UninstallerArgumentParser(String mainClassName, LocalizableMessage toolDescription, boolean longArgumentsCaseSensitive)
mainClassName - The fully-qualified name of the Java class that should
be invoked to launch the program with which this
argument parser is associated.toolDescription - A human-readable description for the tool, which will be
included when displaying usage information.longArgumentsCaseSensitive - Indicates whether subcommand and long argument names
should be treated in a case-sensitive manner.public void initializeGlobalArguments(OutputStream outStream) throws com.forgerock.opendj.cli.ArgumentException
outStream - The output stream used for the usage.com.forgerock.opendj.cli.ArgumentException - If there is a problem with any of the parameters used
to create this argument.public boolean isInteractive()
true if the user specified to have an interactive
uninstall and false otherwise.public boolean isForceOnError()
true if the user specified to force the uninstall in
non critical error and false otherwise.public boolean isQuiet()
true if the user specified to have a quiet
uninstall and false otherwise.public boolean isVerbose()
isVerbose in class SecureConnectionCliParsertrue if the user specified to have a verbose
uninstall and false otherwise.public boolean removeAll()
true if the user specified to remove all files and
false otherwise.public boolean removeServerLibraries()
true if the user specified to remove library files and
false otherwise.public boolean removeDatabases()
true if the user specified to remove database files
and false otherwise.public boolean removeConfigurationFiles()
true if the user specified to remove configuration
files and false otherwise.public boolean removeBackupFiles()
true if the user specified to remove backup files and
false otherwise.public boolean removeLDIFFiles()
true if the user specified to remove LDIF files and
false otherwise.public boolean removeLogFiles()
true if the user specified to remove log files and
false otherwise.public String getDefaultAdministratorUID()
public String getReferencedHostName()
public String getDefaultReferencedHostName()
public int validateGlobalOptions(LocalizableMessageBuilder buf)
validateGlobalOptions in class SecureConnectionCliParserbuf - the LocalizableMessageBuilder to write the error messages.public boolean isCli()
true if the command was launched to use CLI mode and
false otherwise.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.