Search in sources :

Example 1 with SubtreeSpecificationParser

use of org.apache.directory.api.ldap.model.subtree.SubtreeSpecificationParser in project directory-ldap-api by apache.

the class SubtreeSpecificationParserTest method init.

/**
 * Initialization
 */
@BeforeClass
public static void init() throws Exception {
    JarLdifSchemaLoader loader = new JarLdifSchemaLoader();
    schemaManager = new DefaultSchemaManager(loader);
    schemaManager.loadAllEnabled();
    parser = new SubtreeSpecificationParser(schemaManager);
    topOC = schemaManager.lookupObjectClassRegistry("top");
    aliasOC = schemaManager.lookupObjectClassRegistry("alias");
    countryOC = schemaManager.lookupObjectClassRegistry("country");
    personOC = schemaManager.lookupObjectClassRegistry("person");
}
Also used : SubtreeSpecificationParser(org.apache.directory.api.ldap.model.subtree.SubtreeSpecificationParser) JarLdifSchemaLoader(org.apache.directory.api.ldap.schema.loader.JarLdifSchemaLoader) DefaultSchemaManager(org.apache.directory.api.ldap.schema.manager.impl.DefaultSchemaManager) BeforeClass(org.junit.BeforeClass)

Aggregations

SubtreeSpecificationParser (org.apache.directory.api.ldap.model.subtree.SubtreeSpecificationParser)1 JarLdifSchemaLoader (org.apache.directory.api.ldap.schema.loader.JarLdifSchemaLoader)1 DefaultSchemaManager (org.apache.directory.api.ldap.schema.manager.impl.DefaultSchemaManager)1 BeforeClass (org.junit.BeforeClass)1