cancel
Showing results for 
Search instead for 
Did you mean: 

Deleted.

anon26949
Star Contributor
Star Contributor
1 ACCEPTED ANSWER

angelborroy
Community Manager Community Manager
Community Manager

You can find the nodeRef for the document by searching only in target folder (assuming that the same name can be stored in different folders). After that, if you use ContentWriter with the right nodeRef, Alfresco will version the node automatically. 

Some similar code available at:

https://github.com/keensoft/alfresco-esign-cert/blob/master/esign-cert-repo/src/main/java/es/keensof...

Hyland Developer Evangelist

View answer in original post

1 REPLY 1

angelborroy
Community Manager Community Manager
Community Manager

You can find the nodeRef for the document by searching only in target folder (assuming that the same name can be stored in different folders). After that, if you use ContentWriter with the right nodeRef, Alfresco will version the node automatically. 

Some similar code available at:

https://github.com/keensoft/alfresco-esign-cert/blob/master/esign-cert-repo/src/main/java/es/keensof...

Hyland Developer Evangelist