You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Emmanuel Lecharny <el...@apache.org> on 2009/10/08 23:47:32 UTC

[Schema refactoring] Another need : a Registries checker

Hi,

I have made a lot of modifications to the Registries, so that all the 
relations between SchemaObjects are handled (ie, if you try to remove an 
AT which is used in the MAY list of an OC, then you will be tell to go 
to hell).

It seems to be ok, afaict, but there is not simple way to be sure unless 
the Registries is checked after each modificationsdone (at least, for a 
period of time : I think in DEBUG mode, for instance).

I don't have yet a Registries checker, but I know that there is some 
kind of thing in studio. The idea is to check each relation between each 
Object, and check to two maps we are using to store those relations.

If we can have such method I can invoke in tests, that would be perfect !

I will try to commit all the code I'm working on since last week in 
order to expose the last version of each SchemaObject and registries.

Thanks !

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



Re: [Schema refactoring] Another need : a Registries checker

Posted by Alex Karasulu <ak...@gmail.com>.
On Fri, Oct 9, 2009 at 12:47 AM, Emmanuel Lecharny <el...@apache.org>wrote:

> Hi,
>
> I have made a lot of modifications to the Registries, so that all the
> relations between SchemaObjects are handled (ie, if you try to remove an AT
> which is used in the MAY list of an OC, then you will be tell to go to
> hell).
>
> It seems to be ok, afaict, but there is not simple way to be sure unless
> the Registries is checked after each modificationsdone (at least, for a
> period of time : I think in DEBUG mode, for instance).
>
> I don't have yet a Registries checker, but I know that there is some kind
> of thing in studio. The idea is to check each relation between each Object,
> and check to two maps we are using to store those relations.
>
> If we can have such method I can invoke in tests, that would be perfect !
>
> I will try to commit all the code I'm working on since last week in order
> to expose the last version of each SchemaObject and registries.
>
>
It would be nice to create a RegistriesIntegrityChecker utility class for
this as you suggest.  It can be reused by different Registries
implementations if we go that route based on how Registries are going to be
used.

Regards,


-- 
Alex Karasulu
My Blog :: http://www.jroller.com/akarasulu/
Apache Directory Server :: http://directory.apache.org
Apache MINA :: http://mina.apache.org