You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Volker Cordes <Mr...@gmx.de> on 2005/06/05 18:01:10 UTC

Versioning

Hi,

I encountered the following problem when trying to save a new revision 
of an existing document (I'm using the Slide-API):

When saving a new revision of a document the create-method of the 
default ContentImpl only increases the minor version of the document. My 
problem is that I want to create a new major version. How do I do that?
I tried to set the NodeRevisionNumber manually but that didn't work 
because it is ignored by the content handler. And if I create the 
RevisionDescriptor myself (by calling 
uri.getStore().createRevisionDescriptor()) the descriptor isn't added to 
the descriptors-list and I cannot do that because the methods are 
package-private.
Is there any way to create a document with a new major version or do I 
have to change the Slide sourcecode?

Thanks,
Volker

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org