Comment #2 on issue 12 by
oliver.g...@gmail.com: cm:title and
Ok, I found a solution :
NOT using this extension : alfresco-opencmis-extension
the answer is found here :
https://forums.alfresco.com/forum/developer-discussions/alfresco-api/alfresco-cmis-11-compliant-12132013-1009
1. upgraded to 4.2.e
2. Removed the OpenCMIS Extension and I am using the plain
org.apache.chemistry.opencmis.client.api
3. I am using the /public/cmis/versions/1.1/atom url
4. use the
org.apache.chemistry.opencmis:chemistry-opencmis-client-impl:0.12.0
Use this code to add aspects :
HashMap<String, Object> props = new HashMap<String, Object>();
props.put("cmis:objectTypeId", "cmis:folder");
ArrayList<String> secIds = new ArrayList<String>();
secIds.add("P:cm:titled");
props.put("cmis:secondaryObjectTypeIds", secIds);
props.put("cmis:name", "test");
props.put("cm:description", "test description");
folder = cmisSession.getRootFolder().createFolder(props);