如何从CMIS存储库中检索“存储库根” ID /子代? [英] How to retrieve 'repository root' id/children from CMIS repository?

查看:72
本文介绍了如何从CMIS存储库中检索“存储库根” ID /子代?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在对符合cmis 1.0的服务器使用 openCMIS 库,并且我注意到每当我在服务器(露天v3.2和v5.0服务器)上调用getRepositories时,我只会收到一个列表,其中包含一个与我期望的相对的存储库,即服务器上的根目录。如何使用opencmis库检索存储库根目录列表?


编辑

我对问题的措词不当,所以我会更好地解释。

我会怎么做要做的是能够获取实际的 存储库根ID (例如,alfresco中的store_root) 根文件夹ID ,这样我就可以针对api利用它来检索它的直接子级,即与根文件夹处于同一层次级别的对象( 公司首页(在露天))

I am using the openCMIS library against a cmis 1.0 compliant server and I noticed that whenever I call getRepositories on the server (an alfresco v3.2 & v5.0 server) I only receive a list with one repository as opposed to what I was expecting, i.e. the list of roots on the server. How do I retrieve the list of repository roots using the opencmis library?

EDIT
I inappropriately phrased the question so I will explain better.
What I would like to do is to be able to get the actual repository root id(i.e. store_root in alfresco for instance) NOT the root folder id , such that I can leverage that against the api to retrieve it's direct children i.e. objects at the same hierarchical level as root folder (Company Home in alfresco)

推荐答案

Alfresco只有一个存储库,因此您看到的是正确的

Alfresco only has one repository, so what you are seeing is correct.

要了解如何获取根文件夹(即Company Home),然后如何获取根文件夹的子级,请参见此处

To understand how to get the root folder (which is Company Home), then how to get the root folder's children, see here.

这篇关于如何从CMIS存储库中检索“存储库根” ID /子代?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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