AnsweredAssumed Answered

Getting site folders within st:sites using CMIS 1.1?

Question asked by kartech11 on Jul 24, 2018
Latest reply on Jul 24, 2018 by kranthi



I am trying to get all the sites under st:sites using CMIS 1.1 but I am not getting any child folders under st:sites .


  ItemIterable<CmisObject> siteObjects = getChildren((Folder) o);

I am able to access the st:sites object, but don't see any children under the object when I convert it to a folder


Complete Code

private String SITE_TYPE_ID ="F:st:sites";
List<Object> getSites(){
Folder root = session.getRootFolder();
ItemIterable<CmisObject> children = root.getChildren();
for (CmisObject o : children) {
   System.out.println(o.getName() + " which is of type " + o.getType().getDisplayName());
    ItemIterable<CmisObject> siteObjects = getChildren((Folder) o);
    for(CmisObject s: siteObjects){
       System.out.println("Site Name is " + s.getName() + " and id is " + s.getId());
return null;
private ItemIterable<CmisObject> getChildren(Folder f){
    ItemIterable<CmisObject> childFolders = f.getChildren();
    return childFolders;