O'Reilly logo

Alfresco CMIS by Martin Bergljung

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Version management with check out and check in

As mentioned before, only document objects can be versioned. When a document is created via CMIS, it always has versioning enabled even if the check-out and check-in features have not been used. So when we created, for example, the OpenCMISTest.txt file with the createDocument method, Alfresco automatically applied the cm:versionable aspect and set its properties as follows:

  • cm:autoVersionOnUpdateProps: This property is set to true, which means that a new version will be created every time a property is updated
  • cm:versionLabel: This property is set to 1.0
  • cm:autoVersion: This property is set to false, so a new version will not be created if content is updated for the document
  • cm:initialVersion: This

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required