org.apache.ldap.clients
Class AddOpts

java.lang.Object
  extended by org.apache.ldap.clients.Opts
      extended by org.apache.ldap.clients.BindOpts
          extended by org.apache.ldap.clients.AddOpts

public class AddOpts
extends BindOpts

Add operation command line options bean.


Field Summary
 
Fields inherited from class org.apache.ldap.clients.BindOpts
bindDn, DEFAULT_HOST, DEFAULT_MAX_ENTRIES, DEFAULT_MAX_TIME, DEFAULT_PORT, host, isDryRun, isVerbose, isVersion3, options, password, port
 
Fields inherited from class org.apache.ldap.clients.Opts
BASEDN_OPT, baseDnOption, BINDDN_OPT, bindDnOption, FILE_OPT, fileOption, HOST_OPT, hostOption, MAX_ENTRIES_OPT, MAX_TIME_OPT, maxEntriesOption, maxTimeOption, NOTHING_OPT, nothingOption, PASSWORD_OPT, passwordOption, PORT_OPT, portOption, PROTOCOL_OPT, protocolOption, QUIET_OPT, quietOption, SCOPE_OPT, scopeOption, TYPES_OPT, typesOption, VERBOSE_OPT, verboseOption
 
Constructor Summary
AddOpts()
           
 
Method Summary
 java.lang.String getAddedDn()
          Return the Distinguished Name of the entry we are adding
 java.lang.String getLdifFile()
          Get the name of the file to read the entries from
 void process(java.lang.String[] argv)
          Overrides BindOpts.process to be able to get the ADD entry's Dn.
 boolean usesLdifFile()
          Based in the command line arguments, determine if a file is being used as the input for the LDIF entries
 
Methods inherited from class org.apache.ldap.clients.BindOpts
getBindDn, getHost, getOptions, getPassword, getPort, isDryRun, isVerbose, isVersion3, setBindDn, setHost, setIsDryRun, setIsVerbose, setIsVersion3, setPassword, setPort
 
Methods inherited from class org.apache.ldap.clients.Opts
getParser, isProcessed, setProcessed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddOpts

public AddOpts()
Method Detail

getAddedDn

public java.lang.String getAddedDn()
Return the Distinguished Name of the entry we are adding

Returns:
m_addedDn DN of entry add operation is being performed on

usesLdifFile

public boolean usesLdifFile()
Based in the command line arguments, determine if a file is being used as the input for the LDIF entries

Returns:
true if a file is being used as the input method

getLdifFile

public java.lang.String getLdifFile()
Get the name of the file to read the entries from

Returns:
the name of the file being used as the input method

process

public void process(java.lang.String[] argv)
             throws ParseException
Overrides BindOpts.process to be able to get the ADD entry's Dn.

Overrides:
process in class BindOpts
Parameters:
argv - the variable argument list from the command line.
Throws:
ParseException - if any of the command line option is incorrect