CMIS custom metadata

Hi all, i wanted to know how could someone instantiate a custom datamodel through cmis. i created a type named Book, with


and all that stuff. but i can't figure what is the


i have to put in order that nuxeo recognizes that type. Could you help, please ?

my code :

Map<String, Object> properties = new HashMap<String, Object>();
    properties.put(PropertyIds.OBJECT_TYPE_ID, "Book");
    properties.put(PropertyIds.NAME, filename);
    Document doc =theFolder.createDocument(properties, null, null);
0 votes

3 answers



Any news here ? Someone can use cmis to create types ?

0 votes


I don't have the exact answer but here are some directions:

0 votes

Thank you, Actually i created a Document type, called issue through nuxeo Studio.

It is working on my Nuxeo 5.6.

What i want to do is to create instances of that type through cmis. when i do that throug Java,

Map&lt;String, Object&gt; properties = new HashMap&lt;String, Object&gt;();
    properties.put(PropertyIds.OBJECT_TYPE_ID, &quot;issue&quot;);
    properties.put(PropertyIds.NAME, filename);
    Document doc =theFolder.createDocument(properties, null, null);

i got this exception :

Exception in thread &quot;main&quot; org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: No such type: issue
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getTypeDefinitionInternal(
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.RepositoryServiceImpl.getTypeDefinition(
at org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getTypeDefinition(
at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getTypeDefinition(
at org.apache.chemistry.opencmis.client.runtime.repository.ObjectFactoryImpl.convertProperties(
at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createDocument(
at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(
at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(
at com.alfresco.cmis.CmisService.createModelNuxeo(
at com.alfresco.cmis.CmisService.main(

issue doesn't seem to exist. Replace issue by File and try it. Did you create the issue doc type ? Are you sure it's available ?

Please could you help me !!!!

-1 votes

take it easy :) you asked the question only 3 hours before you sent this "answer". So many "!!!!" does not make us eager to answer :)