Page 1 of 1

how do OpenKM do version control?

PostPosted:Mon May 11, 2009 6:10 am
by Cosmo
Dear Sir

when I check out and check in a file, the file\'s version number will increase. But if I\'d like to get the older version of this file, what could I do?

Please help,Thanks

Re:how do OpenKM do version control?

PostPosted:Tue May 12, 2009 1:04 pm
by Cosmo
Is there any information about getting older version document??

Re:how do OpenKM do version control?

PostPosted:Thu May 14, 2009 2:51 am
by Cosmo
Does version control in OpenKM means increasing version number??

Re:how do OpenKM do version control?

PostPosted:Thu May 14, 2009 2:47 pm
by jllort
Yes, version control increases number

The sequence is
First -> 1.0
Then 1.1, 1.2, 1.3, 1.4
You can change to older version for example from 1.2 then next version it\'ll be
1.2.1, 1.2.2

Your tree it\'ll be somthing like this
1.0
1.1
1.2
1.3
1.4
1.2.1 ( change to older version )
1.2.3

You might think as a version tree

Re:how do OpenKM do version control?

PostPosted:Mon May 18, 2009 2:05 am
by Cosmo
Dear Jilort

Got it, Thanks a lot.

Re: how do OpenKM do version control?

PostPosted:Wed May 24, 2023 12:08 pm
by swati
how to do version control
i also integrated openkm in my application by using java (spring boot)
can you tell me how
please share code if possible
Thank you
swati

Re: how do OpenKM do version control?

PostPosted:Fri May 26, 2023 8:53 am
by martin_parker
In order for OpenKM version control to function, a readable snapshot of the repository's content at a specific moment must be created. With this version, users may compare different revisions to see the changes made between versions and roll back a repository to a prior one. Version control allows users to maintain track of every change they make, helping to prevent mistakes and keeping track of all the modifications they make.

how to change version from backend in java

PostPosted:Mon Jun 05, 2023 8:52 am
by swati
HELLO,
Actually in openkm how we can change version from backend in java and that changed version we can see on openkm frontend.(this is the task )
ex .suppose i am uploading same document which is already present in openkm and i want to upload same document again then we have to change the version this happens from frontend of openkm but i want to do from backend by using java.
as per my knowledge ,before that i want to get the file name which is uploaded in openkm .
suppose we get the file name which is uploaded in openkm then by using that file name can we change version?
thanks
swati

Re: how do OpenKM do version control?

PostPosted:Fri Jun 16, 2023 7:29 am
by jllort
The version of the document is automatically set by the OpenKM core when creating or updating a document ( strategy is applied to all the documents in the same manner ).

About uploading existing documents, you can prevent it or you can do a weekly report indicating what documents are duplicated -> in the OKM_NODE_DOCUMENT_VERSION we have a column with the hash of the document, two documents with the same hash value which means are the same.

If you wish to change the version name of a document, then it should access the low level OpenKM and update there, probably the quick way will be to update the database column, but I do not suggest it because it is very dangerous if you change in your side may cause problems because setting wrong values