jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas " <nto...@gmail.com>
Subject Re: can't Import a system view using ImportXML
Date Wed, 09 Aug 2006 11:35:44 GMT
Jukka,

What would happen to jcr:system if we delete jcr:root and then replace it?

On 8/9/06, Jukka Zitting <jukka.zitting@gmail.com> wrote:
>
> Hi,
>
> On 8/9/06, Stefan Guggisberg <stefan.guggisberg@gmail.com> wrote:
> > we should IMO support IMPORT_UUID_COLLISION_REPLACE_EXISTING
> > for jcr:root properly rather than doing shortterm hacks.
>
> Agreed. I think the correct implementation would be something like the
> following:
>
>     if (REPLACE_EXISTING and jcr:uuid matches an existing node) {
>         find the target node
>         foreach (target property and child node) {
>             if (!protected) {
>                 remove();
>             }
>         }
>         import to target
>     }
>
> This would also take care of the jcr:system case quite naturally.
>
> BR,
>
> Jukka Zitting
>
> --
> Yukatan - http://yukatan.fi/ - info@yukatan.fi
> Software craftsmanship, JCR consulting, and Java development
>



-- 
a+
Nico
my blog! http://www.deviant-abstraction.net !!

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message