nicola-giacobbe/alfresco — pull request #2 by nicola-giacobbe (2013-01-14 18:24:19+00:00)
Title: TSM-2063

@swenhelge

Hi Swen these are the changes for TSM-2063 which cover all these features:
-extract a TSM version tag from the policy object and store this as a metadata attribute with the document
-if the document already exists create a new version of the document (instead of delete and recreate)
-if no TSM version tag is present return head revision of document
-if TSM version tag is present find version of the document that has this tag set against it (in its meta data), return this document.

As you can see from the source code I've used Lucene search query language to retrieve a node with a tagVersion value set into the "author property node".

The versioning is enabled with the VERSIONABLE aspect at the creation of the node which permits Alfresco to version a node each time is updated is content (will append a base version number(incremented automatically each time is updated) ).