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 updatedanytime
: The content may be updated anytimepwconly
: The content may be updated only when checked out to a...