You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "arcassis@gmail.com" <ar...@gmail.com> on 2009/09/01 18:51:50 UTC

What about deleting versions ?

Hello all,

First of all I want to say that you, folks, are doing a great job with
Jackrabbit !
I have a short question: when I delete a versionable node, does JR
automatically delete all node's versions ?
If not, how can I delete the remaining orphan versions.

Thanks and regards,

Dan Damian

Re: What about deleting versions ?

Posted by "arcassis@gmail.com" <ar...@gmail.com>.
Thanks for your answer Jukka !
Best regards !
On Tue, Sep 1, 2009 at 11:13 PM, Jukka Zitting <ju...@gmail.com>wrote:

> Hi,
>
> As a general note, please use the users@jackrabbit.apache.org mailing
> list for questions about using Jackrabbit.
>
> On Tue, Sep 1, 2009 at 6:51 PM, arcassis@gmail.com<ar...@gmail.com>
> wrote:
> > First of all I want to say that you, folks, are doing a great job with
> > Jackrabbit !
>
> Thanks!
>
> > I have a short question: when I delete a versionable node, does JR
> > automatically delete all node's versions ?
>
> No.
>
> > If not, how can I delete the remaining orphan versions.
>
> Use the VersionHistory.removeVersion() method.
>
> Once you've removed all past versions and there are no remaining
> references to the version history, Jackrabbit (since version 1.6.0,
> see https://issues.apache.org/jira/browse/JCR-134) will automatically
> remove also the version history node from /jcr:system.
>
> BR,
>
> Jukka Zitting
>



-- 
Arcassis

Re: What about deleting versions ?

Posted by Jukka Zitting <ju...@gmail.com>.
Hi,

As a general note, please use the users@jackrabbit.apache.org mailing
list for questions about using Jackrabbit.

On Tue, Sep 1, 2009 at 6:51 PM, arcassis@gmail.com<ar...@gmail.com> wrote:
> First of all I want to say that you, folks, are doing a great job with
> Jackrabbit !

Thanks!

> I have a short question: when I delete a versionable node, does JR
> automatically delete all node's versions ?

No.

> If not, how can I delete the remaining orphan versions.

Use the VersionHistory.removeVersion() method.

Once you've removed all past versions and there are no remaining
references to the version history, Jackrabbit (since version 1.6.0,
see https://issues.apache.org/jira/browse/JCR-134) will automatically
remove also the version history node from /jcr:system.

BR,

Jukka Zitting