Class LDAPManagementContext
- java.lang.Object
-
- org.forgerock.opendj.config.client.DriverBasedManagementContext
-
- org.forgerock.opendj.config.client.ldap.LDAPManagementContext
-
- All Implemented Interfaces:
Closeable,AutoCloseable,ManagementContext
public final class LDAPManagementContext extends DriverBasedManagementContext
An LDAP management connection context.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DrivergetDriver()Gets the driver associated with this management context.static ManagementContextnewLDIFManagementContext(File ldifFile)Returns a LDIF management context on the provided LDIF file.static ManagementContextnewManagementContext(org.forgerock.opendj.ldap.Connection connection, LDAPProfile profile)Create a new LDAP management context using the provided LDAP connection.-
Methods inherited from class org.forgerock.opendj.config.client.DriverBasedManagementContext
close, deleteManagedObject, deleteManagedObject, deleteManagedObject, getManagedObject, getPropertyValue, getPropertyValues, getRootConfiguration, getRootConfigurationManagedObject, listManagedObjects, listManagedObjects, listManagedObjects, managedObjectExists
-
-
-
-
Method Detail
-
newManagementContext
public static ManagementContext newManagementContext(org.forgerock.opendj.ldap.Connection connection, LDAPProfile profile)
Create a new LDAP management context using the provided LDAP connection.- Parameters:
connection- The LDAP connection.profile- The LDAP profile.- Returns:
- Returns the new management context.
-
newLDIFManagementContext
public static ManagementContext newLDIFManagementContext(File ldifFile) throws IOException
Returns a LDIF management context on the provided LDIF file.- Parameters:
ldifFile- The LDIF file to manage- Returns:
- A LDIF file management context
- Throws:
IOException- If problems occurs while reading the file.
-
getDriver
protected Driver getDriver()
Description copied from class:DriverBasedManagementContextGets the driver associated with this management context.- Specified by:
getDriverin classDriverBasedManagementContext- Returns:
- Returns the driver associated with this management context.
-
-