Created
August 2, 2013 01:07
-
-
Save jpotts/6136760 to your computer and use it in GitHub Desktop.
Using CMIS to dump an object's versions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document = session.getObjectByPath('/versionableExample.txt') | |
println("Checked out?" + document.versionSeriesCheckedOut) | |
versions = document.getAllVersions() | |
for (version in versions) { | |
println ("Version:" + version.versionLabel + " PWC?:" + version.privateWorkingCopy) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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