How to specify a version evolution when updating a document using the drive

Hello

I have been able to configure a FileImporter so as to let the Drive know about my specific document type:

As an example, if I put the file AAA.xxx into the Drive space (using a Windows machine), my FileImporter is tought to create a document AAA of type MyType into the workspace.

This works well!

Now I want to change my AAA.xxx file locally. If I update the Nuxeo Drive, how can I:

  • modify the AAA document (instead of re-creating it) ?
  • specify the version strategy (eg. incrementing the minor version id) ?

Thanks for any hint.

Regards Christian Arnault

0 votes

0 answers

814 views

ANSWER

I have added the versioning policy to the FileManager extension

<component name="org.in2p3.ca.filemanager"> <extension target="org.nuxeo.ecm.platform.filemanager.service.FileManagerService"

    point=&quot;plugins&quot;&gt;
&lt;plugin name=&quot;CAFileImporter&quot; class=&quot;org.in2p3.ca.CAFileImporter&quot;
        enable=&quot;true&quot; order=&quot;1&quot;&gt;
  &lt;filter&gt;application/pdf&lt;/filter&gt;
&lt;/plugin&gt;

&lt;versioning&gt;
  &lt;defaultVersioningOption&gt;MAJOR&lt;/defaultVersioningOption&gt;
&lt;/versioning&gt;

</extension> </component>

But still no versionning happens

[note that my create action in my CAFileImporter does create the proper document type]

Christian

12/02/2013