Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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