org.apache.ldap.clients
Class ModifyOpts

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

public class ModifyOpts
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
ModifyOpts()
           
 
Method Summary
 java.lang.String getLdifFile()
          Get the file name of the LDIF
 java.lang.String getModifyDn()
          Get the DN of the entry to be modified
 void process(java.lang.String[] argv)
          Overrides BindOpts.process to be able to get the modified entry's Dn.
 boolean usesLdifFile()
          Determines if an LDIF file is used, or if STDIN is used to
 
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

ModifyOpts

public ModifyOpts()
Method Detail

getModifyDn

public java.lang.String getModifyDn()
Get the DN of the entry to be modified

Returns:
DN of the entry to be modified

usesLdifFile

public boolean usesLdifFile()
Determines if an LDIF file is used, or if STDIN is used to

Returns:
boolean LDIF

getLdifFile

public java.lang.String getLdifFile()
Get the file name of the LDIF

Returns:
File name of the LDIF

process

public void process(java.lang.String[] argv)
             throws ParseException
Overrides BindOpts.process to be able to get the modified 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 options is incorrect