Alfresco - How to get all checked out documents?

无人久伴 提交于 2019-12-11 13:26:05

问题


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

Which is:

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!!


回答1:


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).

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.

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"



来源:https://stackoverflow.com/questions/37927969/alfresco-how-to-get-all-checked-out-documents

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!