Class LDAPManagementContext

    • 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.