Search code examples
alfrescocmisopencmis

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


I have one question. How can I get Folder Name,Id etc...(Folder details) from document Id in alfresco using cmis api? Is there any way??? Thanks


Solution

  • Finally I got the answer..use following line..

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