I am writing a web script to get a list of all the checkout documents and user who has them checked out.
I can use this api to get a Boolean answer of whether a document is checked out or not;
var docNode = search.findNode("workspace://SpacesStore/"+alfid);
model.foo = docNode.hasAspect("cm:workingcopy");
Now, I need to find the lock owner for this docNode, I tried this api but it doesn't return anything:
model.boo = docNode.properties["cm:lockOwner"]
Any suggestions?