xdmp.collectionLocks( [uri as String[]] ) as Sequence
Returns locks of documents in a collection.
Parameters | |
---|---|
uri | The input URI. |
Note that the locks described here are relatively heavy persistent document locks for file system emulation through WebDAV, not relatively light transaction locks for database consistency.
for (var d of xdmp.collectionLocks( ["http://example.com/col1/", "http://example.com/col2/"]) ) { if (d.value) { xdmp.nodeUri(d); } }; => http://example.com/bar.xml http://example.com/baz.xml