Hi,

I'm using Jackrabbit 2. Is the following scenario possible?

                Node page = testRootNode.addNode("page");
                page.addMixin("mix:versionable");
                page.setProperty("name", "1");
                page.setProperty("published", true);

                session.save();

                
session.getWorkspace().getVersionManager().checkin(page.getPath());

                
session.getWorkspace().getVersionManager().checkout(page.getPath());
                page.setProperty("name", "2");
                page.setProperty("published", false);

                session.save();

                
session.getWorkspace().getVersionManager().checkin(page.getPath());

At this point I would want to get the node that has the published
property set to true.

I can't see how to get the actual node from the version history so I
can query the bodes properties.

How can I proceed?

Ben Short

Reply via email to