cancel
Showing results for 
Search instead for 
Did you mean: 

Manually change Version number

zoao
Champ in-the-making
Champ in-the-making
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
8 REPLIES 8

zoao
Champ in-the-making
Champ in-the-making
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]

perozdero
Champ in-the-making
Champ in-the-making
Could you please explain me how did you manage to change version label?
I am having some difficulties with that…

zoao
Champ in-the-making
Champ in-the-making
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?

jankop
Champ in-the-making
Champ in-the-making
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

iro
Champ in-the-making
Champ in-the-making
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!

gmwestrup
Champ in-the-making
Champ in-the-making
I need to be able to do this also. I uploaded 70G of files and they are not all at version 1.0

mfregra
Champ in-the-making
Champ in-the-making
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!!

deadbird
Champ in-the-making
Champ in-the-making
I need that too :'(