|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.cli.AbstractCli
org.ldaptive.cli.DeleteOperationCli
public class DeleteOperationCli
Command line interface for DeleteOperation.
| Field Summary |
|---|
| Fields inherited from class org.ldaptive.cli.AbstractCli |
|---|
OPT_HELP, OPT_PROVIDER_PROPERTIES, options, outputDsmlv1 |
| Constructor Summary | |
|---|---|
DeleteOperationCli()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.ldaptive.cli.AbstractCli |
|---|
getArgDesc, getPropertiesFromOptions, initConnectionFactory, performAction, printExamples, printHelp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeleteOperationCli()
| Method Detail |
|---|
public static void main(String[] args)
args - command line arguments.protected void initOptions()
initOptions in class AbstractCli
protected int dispatch(org.apache.commons.cli.CommandLine line)
throws Exception
dispatch in class AbstractCliline - parsed command line arguments
Exception - on errors thrown by action
protected int delete(ConnectionFactory cf,
String[] entryDns)
throws Exception
cf - connection factory.entryDns - to delete
Exception - on any LDAP search errorprotected String getCommandName()
getCommandName in class AbstractCli
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||