AnsweredAssumed Answered

CMIS TypeChildren usage

Question asked by gclaussn on Apr 30, 2010
Latest reply on Jul 8, 2010 by fmui
Hi all,
I am trying to handle subtypes of document with OpenCMIS, because I'm planing to create an own data model for specific use cases.
When I'm asking for children of cmis:document, I get the result like you can see under the source code.


PagingList<ObjectType> types = session.getTypeChildren("cmis:document", true, 10);

for(List<ObjectType> list : types) {
   for(ObjectType type : list) {
      System.out.println(type.getQueryName());
   }
}

ia:calendarEvent
wcm:avmcontent
lnk:link
cmiscustom:document
imap:imapBody
wca:deploymentreport
wcm:avmlayeredcontent
bpm:task
cm:thumbnail
bpm:workflowDefinition
imap:imapAttach
cm:dictionaryModel
fm:post
cm:savedquery

When creating a document with a specific subtype as objectTypeId, an error occurs:
>Web Script Status 400 - Bad Request
>Request sent by the client was syntactically incorrect.
>CMIS object type customcmis:document not understood

Can anyone help? Is it a problem with the CMIS implementation? Or my wrong understanding?

thanks in advance, gclaussn

Outcomes