incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Janne Jalkanen <Janne.Jalka...@ecyrd.com>
Subject Re: [jira] Created: (JSPWIKI-110) time machine
Date Tue, 18 Dec 2007 09:57:03 GMT
> This would then permit the addition of a "time machine" that would put
> together a catalog of the pages based on their versions as of that  
> Date.
> I.e., the time machine would simply create an alternative set of wiki
> pages as of a given date.

May be.  With JCR you need to first fetch the version history, and  
then perform a "checkout" for each version you want to manage.  It  
also supports things like forks, which may be a tad too complicated  
for us.  One option would be to have a separate "wiki:versions" tree,  
where we would just move() the old pages.  Or maybe, have the version  
history available as a subnode of a particular page.

e.g. path /wiki:pages/RecentChanges/wiki:content would give the text  
of a page,
/wiki:pages/RecentChanges/wiki:versions/23/wiki:content would give  
the text of page at version 23.

(Of course, the regular user would not see the full JCR paths; just  
shortcuts.)

/Janne

Mime
View raw message