cancel
Showing results for 
Search instead for 
Did you mean: 

Updating a doc version

horia
Champ in-the-making
Champ in-the-making
Hi,

I wrote a method that updates a doc content. It sets the stream for the new content, but the version is not incremented after calling
setContentStream
on the
Document
object.
Do I have to do it manually by retrieving existing version, then incrementing it and then setting the property
VERSION_LABEL
?

Thanks
2 REPLIES 2

abarisone
Star Contributor
Star Contributor
Hi,
take a look at this https://forums.alfresco.com/forum/developer-discussions/alfresco-api/update-document-version-0708201... and read the corresponding API classes JavaDocs

Regards,
Andrea

horia
Champ in-the-making
Champ in-the-making
Thanks, Andrea,

unfortunately the checkIn method described as solution in your link won't help me since my document is not a private copy.
Any ideas?