How to get through CMIS the available document types in my folder?

In the Nuxeo's interface I can see the restriction created in my folder (my folder –> Manage tab –> Local Configuration sub-tab –> Document types configuration) but I don't see its using CMIS

My code is:

public List

Folder someFolder = (Folder) session.getObjectByPath(folderPath);
List<ObjectType> listType = someFolder.getAllowedChildObjectTypes();

for (ObjectType objectType : listType) {
    System.out.println(objectType.getDisplayName());
}

return listType;

}

My code returns an empty list but should return the list of the available document types.

Regards.

0 votes

1 answers

1161 views

ANSWER



I don't believe Nuxeo 7.2 currently populates the cmis:allowedChildObjectTypeIds property for folders. You might want to submit this as an enhancement request/bug report to Nuxeo.

0 votes