views:

29

answers:

1

Hello,

Is there a way to retrieve the Working Copy Node of a given locked node?

I am building a webscript using javascript for Alfresco.

Thank you.

A: 

You can recognize working copies by the cm:workingcopy aspect. They have a reference to the original document in the cm:source property.

You can use the following Lucene query:

+ASPECT:"cm:workingcopy" +@cm\:source:"workspace://SpacesStore/....."

where you replace "workspace://SpacesStore/....." with the noderef of the checked out document.

Jonas Heylen