chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Danninger <sebastian.dannin...@googlemail.com>
Subject Problem with create custom Folder
Date Thu, 28 Feb 2013 18:06:30 GMT
Dear all,

I try to create a folder with custom type.

Map<String, String> properties = new HashMap<String, String>();
        properties.put(PropertyIds.OBJECT_TYPE_ID, "D:ip:akte");
        properties.put(PropertyIds.NAME, name);
        properties.put("ip:participants", participants);
        properties.put("ip:owners", owners);
        Folder root = session.getRootFolder();
        Folder folder = root.createFolder(properties, null, null, null,
session.getDefaultContext());

I get this error:

Exception in thread "main"
org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException:
Type 'D:ip:akte' is unknown!

but using the alfresco node browser i get:

Search  *Search Language:*solr-cmis  *Search:*SELECT * FROM ip:akte
Results (0 rows)  NameNodeParent

Time ms: 1562


any suggestions or is it a repository specific bug?


using v0.8


thanks
Sebastian

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message