|
|
|
[
Permlink
| « Hide
]
Florent Guillaume - 17/02/07 18:27
Bogdan suggested that an extension point be used to specify the class for a "VersionManager" that the connector would use. The versioning code would be separated in this class, a standard one would receive the current code, and a new one would receive "by hand" code.
1. To enable the custom versioning, the VersioningService.xml must specify
<property name="versioningService" value="org.nuxeo.ecm.core.versioning.custom.CustomVersioningService"/> instead of : <property name="versioningService" value="org.nuxeo.ecm.core.jcr.versioning.JCRVersioningService"/> 2. The versions of a document are indexed also therefore they appear in the search result as separate docs. There are 2 possibilities to handle this situation: - to leave them in the result and mark them as versions (ex...adding a suffix v.01, etc) - to add a filter to any query in jcr that will eliminate records under /versioningService/ node. For search results, from the user perspective what we would like is : only one it per document : if several versions matches then only return the latest version.
Reopening for one missing but important detail:
When the document is deleted from the workspace, its version history must be garbage collected, otherwise it will grow endlessly. Actually I have to amend this.
We mustn't garbage collect the VersionHistory when the document is removed, but when all references to the VersionHistory or a Version disappears. For instance, if there are still proxies to some Version, the VersionHistory must not be removed! See my last comment, this cannot be closed right now.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||