Skip to content

Instantly share code, notes, and snippets.

@jpotts
Created August 2, 2013 01:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jpotts/6136760 to your computer and use it in GitHub Desktop.
Save jpotts/6136760 to your computer and use it in GitHub Desktop.
Using CMIS to dump an object's versions
document = session.getObjectByPath('/versionableExample.txt')
println("Checked out?" + document.versionSeriesCheckedOut)
versions = document.getAllVersions()
for (version in versions) {
println ("Version:" + version.versionLabel + " PWC?:" + version.privateWorkingCopy)
}
Checked out?true
Version:V 4.0 PWC?:true
Version:V 3.0 PWC?:false
Version:V 2.0 PWC?:false
Version:V 1.0 PWC?:false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment