public class LDAPDelete extends Object
| Constructor and Description |
|---|
LDAPDelete(AtomicInteger nextMessageID,
PrintStream out,
PrintStream err)
Constructor for the LDAPDelete object.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
The main method for LDAPDelete tool.
|
static int |
mainDelete(String[] args)
Parses the provided command-line arguments and uses that information to
run the ldapdelete tool.
|
static int |
mainDelete(String[] args,
boolean initializeServer,
OutputStream outStream,
OutputStream errStream)
Parses the provided command-line arguments and uses that information to
run the ldapdelete tool.
|
void |
readAndExecute(LDAPConnection connection,
ArrayList<String> lines,
LDAPDeleteOptions deleteOptions)
Execute the delete request on the specified list of DNs.
|
void |
readAndExecute(LDAPConnection connection,
Reader reader,
LDAPDeleteOptions deleteOptions)
Read the specified DNs from the given reader
(file or stdin) and execute the given delete request.
|
public LDAPDelete(AtomicInteger nextMessageID, PrintStream out, PrintStream err)
nextMessageID - The next message ID to use for requests.out - The print stream to use for standard output.err - The print stream to use for standard error.public void readAndExecute(LDAPConnection connection, ArrayList<String> lines, LDAPDeleteOptions deleteOptions) throws IOException, LDAPException
connection - The connection to use to execute the request.lines - The list of DNs to delete.deleteOptions - The constraints to use for this request.IOException - If a problem occurs while attempting to communicate
with the Directory Server.LDAPException - If the Directory Server returns an error response.public void readAndExecute(LDAPConnection connection, Reader reader, LDAPDeleteOptions deleteOptions) throws IOException, LDAPException
connection - The connection to use to execute the request.reader - The reader to read the list of DNs from.deleteOptions - The constraints to use for this request.IOException - If a problem occurs while attempting to communicate
with the Directory Server.LDAPException - If the Directory Server returns an error response.public static void main(String[] args)
args - The command-line arguments provided to this program.public static int mainDelete(String[] args)
args - The command-line arguments provided to this program.public static int mainDelete(String[] args, boolean initializeServer, OutputStream outStream, OutputStream errStream)
args - The command-line arguments provided to this
program.initializeServer - Indicates whether to initialize the server.outStream - The output stream to use for standard output, or
null if standard output is not
needed.errStream - The output stream to use for standard error, or
null if standard error is not
needed.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.