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


Sometimes, when you are working with documents in a team, it is useful to be able to check out and lock a document so that other people cannot update it at the same time as you. This can be accomplished by using the checkOut service call from the versioning services. When you have finished editing the so-called working copy, it can be checked in with the checkIn service call, which creates a new version and updates the version label.

The physical content of a document might not be updateable in the particular repository that you are using. To find out if an object's content is updateable, check the value of the capabilityContentStreamUpdatability property. This property is returned in the getRepositoryInfo service call in the capabilities sections.

Valid values for this property are the following:

  • none: The content may never be updated

  • anytime: The content may be updated anytime

  • pwconly: The content may be updated only when checked out to a...