jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: Version comment
Date Fri, 19 May 2006 20:27:56 GMT

Could you solve your use case simply by defining a custom versionable
subtype like the following?

    [myns:versionable] > mix:versionable mixin
    - myns:versionComment (STRING) COPY

The myns:versionComment property would be just a normal string
property of the content node being versioned. Whenever the node is
checked in, the comment property gets copied to the frozen node. So to
associate a comment with a version, you'd do something like this:

    node.setProperty("myns:versionComment", "foo");


Jukka Zitting

Yukatan - http://yukatan.fi/ - info@yukatan.fi
Software craftsmanship, JCR consulting, and Java development
View raw message