public class CompareOperationCli extends AbstractCli
CompareOperation.| Modifier and Type | Field and Description | 
|---|---|
private static String | 
COMMAND_NAME
name of operation provided by this class. 
 | 
private static String | 
OPT_ATTR
option for LDAP attribute name/value pair. 
 | 
private static String | 
OPT_DN
option for LDAP DN. 
 | 
OPT_HELP, OPT_PROVIDER_PROPERTIES, options, outputDsmlv1| Constructor and Description | 
|---|
CompareOperationCli()  | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
getArgDesc, getPropertiesFromOptions, initConnectionFactory, performAction, printExamples, printHelpprivate static final String OPT_DN
private static final String OPT_ATTR
private static final String COMMAND_NAME
public static void main(String[] args)
args - command line arguments.protected void initOptions()
AbstractCliinitOptions in class AbstractCliprotected int dispatch(org.apache.commons.cli.CommandLine line)
                throws Exception
AbstractClidispatch in class AbstractCliline - parsed command line argumentsException - on errors thrown by actionprotected int compare(ConnectionFactory cf, String dn, LdapAttribute attr) throws Exception
cf - connection factorydn - to compare attribute onattr - attribute to compareException - on any LDAP search errorprotected String getCommandName()
AbstractCligetCommandName in class AbstractCliCopyright © 2003-2019 Virginia Tech. All Rights Reserved.