Hi Stefan,

Just out of curiosity, under what circumstances could it be useful to
backup/restore the repository without the version storage? If you're
using versionable nodes, then if you lose the version history you end up
in a right old mess. Is there a usage scenario I'm missing here?

miro



-----Original Message-----
From: Stefan Guggisberg [mailto:[EMAIL PROTECTED] 
Sent: 09 August 2006 09:43
To: [email protected]
Subject: Re: Issue when restoring the Node version history

On 8/8/06, Nicolas <[EMAIL PROTECTED]> wrote:
> Hi Tobias,
>
> The issue I have is nothing allow
>
> It's really simpler for me to update all protected nodes, restore the
> version history and then switch back to the protection. However to do
so, I
> don't see any other option than adding a method reregisterBuiltIn in
the
> NodeTypeManager... I am not sure if it's a wise decision.

it's not, -1 for reregisterBuiltIn

importXML is not suitable for restoring system managed data.
restoring version data (whether that's a good idea is another question)
should definitely be handled by the VersionManager.

cheers
stefan

> Besides when I
> try  commenting those check, the import is false. I think some
reference are
> out of date...
>
> So unless you have a better idea, I have to implement an importXML
method
> for the Versioning. This method will have to be in core and would
import any
> /jcr:system/jcr:versionStorage of Jackrabbit.
>
> What do you think of this solution? Do you have a better idea?
>
> Nico
>
> On 8/7/06, Nicolas <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > ---------- Forwarded message ----------
> > From: Nicolas < [EMAIL PROTECTED]>
> > Date: Aug 7, 2006 11:33 AM
> > Subject: Re: Issue when restoring the Node version history
> > To: [EMAIL PROTECTED]
> >
> > Yes that's why I thought :)
> >
> > I do think however, adding an import method to the VersionManager is
way
> > more elegant. Do you agree?
> >
> >
> > On 8/7/06, Tobias Bocanegra <[EMAIL PROTECTED]> wrote:
> > >
> > > > Why wouldn't it work if we bypass the VersionManager?
> > >
> > > you would need to flush all the caches. but since you probably
restart
> > > the repo anyways after restore, this might not be a problem.
> > >
> > > regards, toby
> > > --
> > > -----------------------------------------<
[EMAIL PROTECTED] >---
> > > Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001
Basel
> > > T +41 61 226 98 98, F +41 61 226 98 97
> > > -----------------------------------------------<
http://www.day.com >---
> > >
> >
> >
> >
> > --
> > a+
> >
> > Nico
> > my blog! http://www.deviant-abstraction.net !!
> >
> >
> > --
> > a+
> > Nico
> > my blog! http://www.deviant-abstraction.net !!
> >
>
>
>
> --
> a+
> Nico
> my blog! http://www.deviant-abstraction.net !!
>
>

Reply via email to