public final class LDAPManagementContextFactory extends Object
Constructor and Description |
---|
LDAPManagementContextFactory(com.forgerock.opendj.cli.ConnectionFactoryProvider cfp)
Creates a new LDAP management context factory based on an authenticated connection factory.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this management context.
|
com.forgerock.opendj.cli.CommandBuilder |
getContextCommandBuilder()
Returns the command builder that provides the equivalent arguments in interactive mode to get the management
context.
|
ManagementContext |
getManagementContext()
Gets the management context which sub-commands should use in order to manage the directory server.
|
public LDAPManagementContextFactory(com.forgerock.opendj.cli.ConnectionFactoryProvider cfp) throws com.forgerock.opendj.cli.ArgumentException
cfp
- The connection factory provider which should be used in this context.com.forgerock.opendj.cli.ArgumentException
- If an exception occurs when creating the authenticated connection factory linked to this context.public void close()
public com.forgerock.opendj.cli.CommandBuilder getContextCommandBuilder()
public ManagementContext getManagementContext() throws com.forgerock.opendj.cli.ArgumentException, com.forgerock.opendj.cli.ClientException
com.forgerock.opendj.cli.ArgumentException
- If a management context related argument could not be parsed successfully.com.forgerock.opendj.cli.ClientException
- If the management context could not be created.Copyright 2010-2017 ForgeRock AS.