Alfresco-如何获取所有签出的文件? [英] Alfresco - How to get all checked out documents?

查看:66
本文介绍了Alfresco-如何获取所有签出的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试获取所有已检出文档的列表。不幸的是,我是Alfresco的新手,无法完全确定该如何做。我发现了这一点:

I'm trying to get a list of all checked out documents. Unfortunately, I'm new to Alfresco and can't quite figure out how to do this. I found this:

https://wiki.alfresco.com/wiki/CMIS_Web_Scripts_Reference#Get_Checked_Out_Documents_.28getCheckedOutDocs.29

这是:

获取用户有权访问的已签出文档的列表。

Gets the list of documents that are checked out that the user has access to.

但是我不希望仅签出一份文档用户,我希望所有用户都签出文件。有办法吗?

But I don't want the checked out documents for just one user, I want the checked out documents of all users. Is there a way to get that?

任何帮助将不胜感激,谢谢!!

Any help would be greatly appreciated, thanks!!

推荐答案

您可以做的是创建自己的Web脚本,并以管理员权限执行该脚本(这意味着您将以管理员身份运行,会看到整个存储库,然后会看到所有

What you could do is create your own web script which you would execute with admin privileges (meaning, you'd act as an administrator, you'd see the whole repository, and you'd see all the documents in it).

现在,您缺少的是一种查找所有已签出文档的方法。好吧,当您签出文档时,会创建一个工作副本(而原始副本仍处于锁定状态)。工作副本获取 cm:workingCopy方面,而原始副本获取 cm:checkedOut方面。

Now, what you're missing is a way to find all the checked out documents. Well, when you check out a document, a working copy gets created (while the original remains locked). Working copy gets the "cm:workingCopy" aspect, while the original gets the "cm:checkedOut" aspect.

您的所有Web脚本所需要做的就是执行一个方面基于查询,找到您需要的。您可以在编写任何代码之前使用节点浏览器测试查询。

All your web script needs to do is to execute an aspect based query and find what you need. You can use Node Browser to test the query before writing any code.


ASPECT: cm:checkedOut

ASPECT:"cm:checkedOut"

这篇关于Alfresco-如何获取所有签出的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆