Page 1 of 1

Edit version

PostPosted:Thu Apr 21, 2011 9:48 am
by ssprasad.e
edit version feature is not there?

Re: Edit version

PostPosted:Thu Apr 21, 2011 3:11 pm
by jllort
What do you understanding for edit version feature ?

Re: Edit version

PostPosted:Sat Apr 23, 2011 11:01 am
by ssprasad.e
I WANT TO EDIT THE VERSION OF DOCUMENT.
IN THE CODE HOW TO EDIT? PLEASE HELP ME.

Re: Edit version

PostPosted:Sat Apr 23, 2011 1:27 pm
by jllort
That's not trivial. The document version number is internally done by jackrabbit core, and can not be directly change it. But you can translate to your own codification if you want. The most simply way to make translation is on Servlet.

I suggest take a look at GWTUtil.java ( GWTDocument to Document and Document to GWTDocument ) and then DownloadServlet and ConversionServlet where version is passed as parameter and used to downloading some document version.