|
||||||||||
| 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.CompareOperationCli
public class CompareOperationCli
Command line interface for CompareOperation.
| Field Summary |
|---|
| Fields inherited from class org.ldaptive.cli.AbstractCli |
|---|
OPT_HELP, OPT_PROVIDER_PROPERTIES, options, outputDsmlv1 |
| Constructor Summary | |
|---|---|
CompareOperationCli()
|
|
| Method Summary | |
|---|---|
protected int |
compare(ConnectionFactory cf,
String dn,
LdapAttribute attr)
Executes the ldap compare 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 CompareOperationCli()
| 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 compare(ConnectionFactory cf,
String dn,
LdapAttribute attr)
throws Exception
cf - connection factorydn - to compare attribute onattr - attribute to compare
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 | |||||||||