public final class LdapManagementContextFactory extends Object
Constructor and Description |
---|
LdapManagementContextFactory(com.forgerock.opendj.cli.LdapClientProvider cfp)
Creates a new LDAP management context factory based on LDAP client.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this 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.LdapClientProvider cfp)
cfp
- The LDAP client provider which should be used in this context.public void close()
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-2020 ForgeRock AS.