Skip to content

Instantly share code, notes, and snippets.

@jpotts
Created April 22, 2014 19:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpotts/11191882 to your computer and use it in GitHub Desktop.
Save jpotts/11191882 to your computer and use it in GitHub Desktop.
Retrieve the list of categories for a node using CMIS 1.1 cmis:item support
testDoc = session.getObjectByPath("/test/testfolder1/test1.txt")
catIds = testDoc.getPropertyValue("cm:categories")
for (catId in catIds) {
cat = session.getObject(catId)
println(cat.name)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment