jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: How to publish a specific node version to a workspace ?
Date Thu, 19 Feb 2009 12:53:22 GMT
Hi,

On Tue, Feb 17, 2009 at 11:52, g.reinhart <greinhart.dev@googlemail.com> wrote:
>
> Hi,
>
> UseCase:
>  - on the repository MyObject on path "/myObject" has several versions (
> 1.0, 1.1, 1.2, 1.3  )
>  - the base version is 1.3
>  - there is a workspace called "myMorkspace"
>
> I would like to publish the version 1.1 of  the path  "/myObject" to the
> workspace  "myMorkspace".
>
> How can I do it ?  Workspace.clone(String srcWorkspace, String srcAbsPath,
> String destAbsPath, boolean removeExisting) publish the base version.

Hmm, not sure, what about calling
http://www.day.com/maven/jsr170/javadocs/jcr-1.0/javax/jcr/Node.html#restore(javax.jcr.version.Version,
java.lang.String, boolean) on the root node of myWorkspace?

regards
 marcel

Mime
View raw message