Search code examples
alfrescocmisopencmis

How to retrieve 'repository root' id/children from CMIS repository?


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)


Solution

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

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