如何使用 cmis api 从 Alfresco 中的文档 ID 获取文件夹详细信息

How can I get Folder detail from document Id in Alfresco using cmis api

我有一个问题。如何使用 cmis api 从露天文档 ID 中获取文件夹名称、ID 等...(文件夹详细信息)? 有什么办法吗??? 谢谢

我终于得到了答案..使用下面一行..

 ObjectData bindingParent=cmisSession.getBinding().getNavigationService().getFolderParent(cmisSession.getRepositoryInfo().getId(), doc.getId(), null, null);
System.out.println("\n --> id "+ bindingParent.getId());

这个更短:

// get the first parent of the document 
Folder parent = doc.getParents().get(0);

System.out.println("ID: "+ parent.getId());
System.out.println("Name: "+ parent.getName());