org.apache.ldap.clients
Class DelOpts

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

public class DelOpts
extends BindOpts

Delete 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
DelOpts()
           
 
Method Summary
 java.lang.String getDeletedDn()
          Return the DN of the entry to be deleted
 void process(java.lang.String[] argv)
          Overrides BindOpts.process to be able to get the deleted entry's Dn.
 void setDeletedDN(java.lang.String deletedDn)
          Set the DN of the entry to be deleted
 
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

DelOpts

public DelOpts()
Method Detail

getDeletedDn

public java.lang.String getDeletedDn()
Return the DN of the entry to be deleted

Returns:
DN of the entry to be deleted

setDeletedDN

public void setDeletedDN(java.lang.String deletedDn)
Set the DN of the entry to be deleted

Parameters:
deletedDn - DN of the entry to be deleted

process

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