/** * Creates a new instance of DefaultSchemaManager with the default schema schemaLoader * * @param schemas The list of schema to load */ public DefaultSchemaManager( Collection<Schema> schemas ) { // Default to the the root (one schemaManager for all the entries namingContext = Dn.ROOT_DSE; for ( Schema schema : schemas ) { schemaMap.put( schema.getSchemaName(), schema ); } registries = new Registries(); factory = new SchemaEntityFactory(); isRelaxed = STRICT; setErrorHandler( new LoggingSchemaErrorHandler() ); }
/** * Creates a new instance of DefaultSchemaManager with the default schema schemaLoader * * @param schemas The list of schema to load */ public DefaultSchemaManager( Collection<Schema> schemas ) { // Default to the the root (one schemaManager for all the entries namingContext = Dn.ROOT_DSE; for ( Schema schema : schemas ) { schemaMap.put( schema.getSchemaName(), schema ); } registries = new Registries(); factory = new SchemaEntityFactory(); isRelaxed = STRICT; setErrorHandler( new LoggingSchemaErrorHandler() ); }
/** * Creates a new instance of DefaultSchemaManager with the default schema schemaLoader * * @param relaxed If the schema manager should be relaxed or not * @param schemas The list of schema to load */ public DefaultSchemaManager( boolean relaxed, Collection<Schema> schemas ) { // Default to the the root (one schemaManager for all the entries namingContext = Dn.ROOT_DSE; for ( Schema schema : schemas ) { schemaMap.put( schema.getSchemaName(), schema ); } registries = new Registries(); factory = new SchemaEntityFactory(); isRelaxed = relaxed; setErrorHandler( new LoggingSchemaErrorHandler() ); }
/** * Creates a new instance of DefaultSchemaManager with the default schema schemaLoader * * @param schemas The list of schema to load */ public DefaultSchemaManager( Collection<Schema> schemas ) { // Default to the the root (one schemaManager for all the entries namingContext = Dn.ROOT_DSE; for ( Schema schema : schemas ) { schemaMap.put( schema.getSchemaName(), schema ); } registries = new Registries(); factory = new SchemaEntityFactory(); isRelaxed = STRICT; setErrorHandler( new LoggingSchemaErrorHandler() ); }
/** * Creates a new instance of DefaultSchemaManager with the default schema schemaLoader * * @param relaxed If the schema manager should be relaxed or not * @param schemas The list of schema to load */ public DefaultSchemaManager( boolean relaxed, Collection<Schema> schemas ) { // Default to the the root (one schemaManager for all the entries namingContext = Dn.ROOT_DSE; for ( Schema schema : schemas ) { schemaMap.put( schema.getSchemaName(), schema ); } registries = new Registries(); factory = new SchemaEntityFactory(); isRelaxed = relaxed; setErrorHandler( new LoggingSchemaErrorHandler() ); }
/** * Creates a new instance of DefaultSchemaManager with the default schema schemaLoader * * @param relaxed If the schema manager should be relaxed or not * @param schemas The list of schema to load */ public DefaultSchemaManager( boolean relaxed, Collection<Schema> schemas ) { // Default to the the root (one schemaManager for all the entries namingContext = Dn.ROOT_DSE; for ( Schema schema : schemas ) { schemaMap.put( schema.getSchemaName(), schema ); } registries = new Registries(); factory = new SchemaEntityFactory(); isRelaxed = relaxed; setErrorHandler( new LoggingSchemaErrorHandler() ); }
/** * Creates a new instance of DefaultSchemaManager with the default schema schemaLoader * * @param schemaLoader The schemaLoader containing the schemas to load */ public DefaultSchemaManager( SchemaLoader schemaLoader ) { // Default to the the root (one schemaManager for all the entries namingContext = Dn.ROOT_DSE; for ( Schema schema : schemaLoader.getAllSchemas() ) { schemaMap.put( schema.getSchemaName(), schema ); } registries = new Registries(); factory = new SchemaEntityFactory(); isRelaxed = STRICT; setErrorHandler( new LoggingSchemaErrorHandler() ); }
/** * Creates a new instance of DefaultSchemaManager with the default schema schemaLoader */ public DefaultSchemaManager() { // Default to the the root (one schemaManager for all the entries namingContext = Dn.ROOT_DSE; registries = new Registries(); factory = new SchemaEntityFactory(); isRelaxed = STRICT; setErrorHandler( new LoggingSchemaErrorHandler() ); try { SchemaLoader schemaLoader = new JarLdifSchemaLoader(); for ( Schema schema : schemaLoader.getAllSchemas() ) { schemaMap.put( schema.getSchemaName(), schema ); } loadAllEnabled(); } catch ( LdapException | IOException e ) { LOG.error( I18n.err( I18n.ERR_16077_SCHEMA_MANAGER_CANT_BE_LOADED, e.getMessage() ) ); throw new RuntimeException( e.getMessage() ); } }
/** * Creates a new instance of DefaultSchemaManager with the default schema schemaLoader */ public DefaultSchemaManager() { // Default to the the root (one schemaManager for all the entries namingContext = Dn.ROOT_DSE; registries = new Registries(); factory = new SchemaEntityFactory(); isRelaxed = STRICT; setErrorHandler( new LoggingSchemaErrorHandler() ); try { SchemaLoader schemaLoader = new JarLdifSchemaLoader(); for ( Schema schema : schemaLoader.getAllSchemas() ) { schemaMap.put( schema.getSchemaName(), schema ); } loadAllEnabled(); } catch ( LdapException | IOException e ) { LOG.error( I18n.err( I18n.ERR_16077_SCHEMA_MANAGER_CANT_BE_LOADED, e.getMessage() ) ); throw new RuntimeException( e.getMessage() ); } }
/** * Creates a new instance of DefaultSchemaManager with the default schema schemaLoader */ public DefaultSchemaManager() { // Default to the the root (one schemaManager for all the entries namingContext = Dn.ROOT_DSE; registries = new Registries(); factory = new SchemaEntityFactory(); isRelaxed = STRICT; setErrorHandler( new LoggingSchemaErrorHandler() ); try { SchemaLoader schemaLoader = new JarLdifSchemaLoader(); for ( Schema schema : schemaLoader.getAllSchemas() ) { schemaMap.put( schema.getSchemaName(), schema ); } loadAllEnabled(); } catch ( LdapException | IOException e ) { LOG.error( I18n.err( I18n.ERR_16077_SCHEMA_MANAGER_CANT_BE_LOADED, e.getMessage() ) ); throw new RuntimeException( e.getMessage() ); } }
/** * Creates a new instance of DefaultSchemaManager with the default schema schemaLoader * * @param schemaLoader The schemaLoader containing the schemas to load */ public DefaultSchemaManager( SchemaLoader schemaLoader ) { // Default to the the root (one schemaManager for all the entries namingContext = Dn.ROOT_DSE; for ( Schema schema : schemaLoader.getAllSchemas() ) { schemaMap.put( schema.getSchemaName(), schema ); } registries = new Registries(); factory = new SchemaEntityFactory(); isRelaxed = STRICT; setErrorHandler( new LoggingSchemaErrorHandler() ); }
/** * Creates a new instance of DefaultSchemaManager with the default schema schemaLoader * * @param schemaLoader The schemaLoader containing the schemas to load */ public DefaultSchemaManager( SchemaLoader schemaLoader ) { // Default to the the root (one schemaManager for all the entries namingContext = Dn.ROOT_DSE; for ( Schema schema : schemaLoader.getAllSchemas() ) { schemaMap.put( schema.getSchemaName(), schema ); } registries = new Registries(); factory = new SchemaEntityFactory(); isRelaxed = STRICT; setErrorHandler( new LoggingSchemaErrorHandler() ); }