cancel
Showing results for 
Search instead for 
Did you mean: 

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

Romina_Racca
Champ on-the-rise
Champ on-the-rise

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 getAvailableDocumentTypes(Session session, String folderPath){

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.

1 REPLY 1

rg1_
Star Contributor
Star Contributor

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.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.