Janne Jalkanen wrote:
I haven't been looking at Java Content Repository (JSR-170/283) in
depth (will do this soon), but I guess with underlying JCR support
this feature won't be a big thing to implement.

Might be. I have a nagging feeling that the versioning support of JCR is not what we want. The check-in/check-out process is not really designed for this kind of an usecase.

With the existing WikiPageProvider API I was thinking of something akin
to adding a single method to support this (which is after all a pretty
common archiving feature):

   /**
    *  Returns the most recent version number of the wiki page
    *  as of the Date <tt>date</tt>. If the page did not exist
    *  at that time, returns -1.
    */
   public int getVersionAsOfDate( String page, Date date )
           throws ProviderException;

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.

Murray

...........................................................................
Murray Altheim <murray07 at altheim.com>                           ===  = =
http://www.altheim.com/murray/                                     = =  ===
SGML Grease Monkey, Banjo Player, Wantanabe Zen Monk               = =  = =

      Boundless wind and moon - the eye within eyes,
      Inexhaustible heaven and earth - the light beyond light,
      The willow dark, the flower bright - ten thousand houses,
      Knock at any door - there's one who will respond.
                                      -- The Blue Cliff Record

Reply via email to