directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@apache.org>
Subject [Schema Refactoring] Schema loading and initializing
Date Sun, 11 Oct 2009 22:52:17 GMT
Hi guys,

as a result of my latest modifications, here is what is needed to get a 
set of schemas to be loaded :

            JarLdifSchemaLoader loader = new JarLdifSchemaLoader();
            Registries registries = new Registries();
            registries.setRelaxed( true );
            loader.loadAllEnabled( registries );
            registries.checkRefInteg();

We need :
- a SchemaLoader, which will read the schema either from a Jar or from 
Ldif files
- a new Registries, with relaxed constraints
- to load all the SchemaEntities without doing any chack (loadAllEnabled)
- and at the end, a check which will not only return a list of errors 
(if any), but also update the references for each SchemaEntity.

There is a bit more work to be done :
o Handle the Using and UsedBy map so that they are feed
o try to get those 4 lines included in a method.

-- 
--
cordialement, regards,
Emmanuel L├ęcharny
www.iktek.com
directory.apache.org



Mime
View raw message