jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Short <...@benshort.co.uk>
Subject Versioning
Date Mon, 14 Dec 2009 12:25:44 GMT
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

Mime
View raw message