public class LDAPModify extends Object
| Constructor and Description |
|---|
LDAPModify(AtomicInteger nextMessageID,
PrintStream out,
PrintStream err)
Constructor for the LDAPModify object.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
The main method for LDAPModify tool.
|
static int |
mainModify(String[] args)
Parses the provided command-line arguments and uses that information to
run the ldapmodify tool.
|
static int |
mainModify(String[] args,
boolean initializeServer,
OutputStream outStream,
OutputStream errStream)
Parses the provided command-line arguments and uses that information to
run the ldapmodify tool.
|
void |
readAndExecute(LDAPConnection connection,
String fileNameValue,
LDAPModifyOptions modifyOptions)
Read the specified change records from the given input stream
(file or stdin) and execute the given modify request.
|
public LDAPModify(AtomicInteger nextMessageID, PrintStream out, PrintStream err)
nextMessageID - The message ID counter 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, String fileNameValue, LDAPModifyOptions modifyOptions) throws IOException, LDAPException
connection - The connection to use for this modify request.fileNameValue - Name of the file from which to read. If null,
input will be read from System.in.modifyOptions - The constraints for the modify 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 mainModify(String[] args)
args - The command-line arguments provided to this program.public static int mainModify(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.