3

有没有办法检索给定锁定节点的工作副本节点?

我正在为 Alfresco 使用 javascript 构建一个 webscript。

谢谢你。

4

2 回答 2

2

In Alfresco 4 the model has changed and cm:source property is not used for working copies anymore. Also JavaScript property isLockOwner is not there for some reason. So you can get working copy this way:

if (node.isLocked && node.properties["cm:lockOwner"] == person.properties["cm:userName"]) {
    var workingCopy = node.assocs["cm:workingcopylink"][0];
}
于 2013-04-30T21:30:25.497 回答
2

您可以通过 cm:workingcopy 方面识别工作副本。它们在 cm:source 属性中引用了原始文档。

您可以使用以下 Lucene 查询:

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

在其中将“workspace://SpacesStore/.....”替换为签出文档的 noderef。

于 2010-09-23T13:13:38.627 回答