Book Image

Alfresco CMIS

By : Martin Bergljung
Book Image

Alfresco CMIS

By: Martin Bergljung

Overview of this book

Table of Contents (14 chapters)
Alfresco CMIS
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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 property is set to false, so an initial version will not be created in the version history when document is first created

Because the cm:autoVersion property is set to false, a new version will not be created if the document is updated . However...