Manually change Version number

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2009 03:16 PM
After a bulk import, all files are in version 1.0, as usual this is not valid because most files are already in annother version 3.1, 4.0, etc. ..
How can I change initial version number, even if it is through the source code or data base manipulation.
Thanks, João
How can I change initial version number, even if it is through the source code or data base manipulation.
Thanks, João
Labels:
- Labels:
-
Archive
8 REPLIES 8

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2009 02:56 PM
I have detect that the document version has too parts, the unique version number (number that is unique and auto increment for all repository) and the version label.
Like i said in preview post I need change the version label for the current version of the document.
The version label is set in class: SerialVersionLabelPolicy, i have testing change the version label in this class, where check-in a document to put 8.2 instead of version 2.0 and it seems to me that everything is operating normally.
I like to know your opinion, if this can have complications for future versions of alfresco.
screenshot version history:
[img]http://img15.imageshack.us/img15/2636/alfrescoversion.th.jpg[/img]
Like i said in preview post I need change the version label for the current version of the document.
The version label is set in class: SerialVersionLabelPolicy, i have testing change the version label in this class, where check-in a document to put 8.2 instead of version 2.0 and it seems to me that everything is operating normally.
I like to know your opinion, if this can have complications for future versions of alfresco.
screenshot version history:
[img]http://img15.imageshack.us/img15/2636/alfrescoversion.th.jpg[/img]

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2009 10:25 AM
Could you please explain me how did you manage to change version label?
I am having some difficulties with that…
I am having some difficulties with that…

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2009 07:18 PM
I had to change some files in Alfresco. When you change files in Alfresco, future updates is more complicated, so we have to take some precautions.
I put an option to be able to change the version at the moment we are sending a file to the Share, or when editing the MetaData.
[img]http://img180.imageshack.us/img180/2953/updatefile.th.jpg[/img]
[img]http://img180.imageshack.us/img180/3687/editmetadata.th.jpg[/img]
These changes are not yet concluded, but here are the files that changed:
SerialVersionLabelPolicy.java - Class which manages the format of the version label
ScriptNode.java - Class representing a node to be used by webscript (javascript on the server)
metadata.post.json.js - Javascript on the server that receives the data to change the Metadata
… (other files in Share to manage the interface)
When finished I put here the changed files.
I do not know if in future there may be complications that we are manipulating the file version, I'd like to hear from someone in Alfresco Team.
Someone in Alfresco Tream can answer this question?
I put an option to be able to change the version at the moment we are sending a file to the Share, or when editing the MetaData.
[img]http://img180.imageshack.us/img180/2953/updatefile.th.jpg[/img]
[img]http://img180.imageshack.us/img180/3687/editmetadata.th.jpg[/img]
These changes are not yet concluded, but here are the files that changed:
SerialVersionLabelPolicy.java - Class which manages the format of the version label
ScriptNode.java - Class representing a node to be used by webscript (javascript on the server)
metadata.post.json.js - Javascript on the server that receives the data to change the Metadata
… (other files in Share to manage the interface)
When finished I put here the changed files.
I do not know if in future there may be complications that we are manipulating the file version, I'd like to hear from someone in Alfresco Team.
Someone in Alfresco Tream can answer this question?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2010 04:06 AM
Hello!
This is a very interestig topic, and I would also like to know how to do this. I am new to alfresco and with no knowledge in java/programming. Currently we are testing Alfresco for our company, and I am expecting the same issue if we go ahead with Alfresco.
Can you explain with more detail, or send the modified files?
Thank a lot,
Janko
This is a very interestig topic, and I would also like to know how to do this. I am new to alfresco and with no knowledge in java/programming. Currently we are testing Alfresco for our company, and I am expecting the same issue if we go ahead with Alfresco.
Can you explain with more detail, or send the modified files?
Thank a lot,
Janko
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2012 10:32 AM
Hello zoao,
Could you post your solution to this problem? I´m actually just trying to hardcode the base line versionLabel to 0.1, instead of the default 1.0.
Thanks a lot in advance!
Could you post your solution to this problem? I´m actually just trying to hardcode the base line versionLabel to 0.1, instead of the default 1.0.
Thanks a lot in advance!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2012 10:14 AM
I need to be able to do this also. I uploaded 70G of files and they are not all at version 1.0

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-12-2014 09:03 AM
Has anyone solved the issue to manually change version number of a document?
In case we import a lot of files, and then we need to fix each of these files in a start version different from 1.0
Thanks a lot very much!!
In case we import a lot of files, and then we need to fix each of these files in a start version different from 1.0
Thanks a lot very much!!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-02-2015 04:12 AM
I need that too :'(
