public class DeleteOperationCli extends AbstractCli
DeleteOperation
.Modifier and Type | Field and Description |
---|---|
private static String |
COMMAND_NAME
name of operation provided by this class.
|
private static String |
OPT_DN
option for LDAP DN.
|
OPT_HELP, OPT_PROVIDER_PROPERTIES, options, outputDsmlv1
Constructor and Description |
---|
DeleteOperationCli() |
Modifier and Type | Method and Description |
---|---|
protected int |
delete(ConnectionFactory cf,
String[] entryDns)
Executes the ldap delete operation.
|
protected int |
dispatch(org.apache.commons.cli.CommandLine line)
Dispatch command line data to the active that can perform the operation requested on the command line.
|
protected String |
getCommandName()
Returns the name of the command for which this class provides a CLI interface.
|
protected void |
initOptions()
Initialize CLI options.
|
static void |
main(String[] args)
CLI entry point method.
|
getArgDesc, getPropertiesFromOptions, initConnectionFactory, performAction, printExamples, printHelp
private static final String OPT_DN
private static final String COMMAND_NAME
public static void main(String[] args)
args
- command line arguments.protected void initOptions()
AbstractCli
initOptions
in class AbstractCli
protected int dispatch(org.apache.commons.cli.CommandLine line) throws Exception
AbstractCli
dispatch
in class AbstractCli
line
- parsed command line argumentsException
- on errors thrown by actionprotected int delete(ConnectionFactory cf, String[] entryDns) throws Exception
cf
- connection factory.entryDns
- to deleteException
- on any LDAP search errorprotected String getCommandName()
AbstractCli
getCommandName
in class AbstractCli
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.