04-16-2012 05:53 PM
Map<String, Object> properties = new HashMap<String, Object>();
properties.put(PropertyIds.NAME, name);
properties.put(PropertyIds.OBJECT_TYPE_ID, "D:mc:maintChit");
//*****************************************************
properties.put("cm:description",description);
//*****************************************************
ObjectId docId = session.createDocument(properties,
session.createObjectId("workspace://SpacesStore/8097bc61-da49-4f2f-aee2-1ecefc58977e"),
null,
VersioningState.MAJOR);
java.lang.IllegalArgumentException: Property 'cm:description' is neither an object type property nor an aspect property!
at org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl.convertProperties(AlfrescoObjectFactoryImpl.java:181)
at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createDocument(SessionImpl.java:716)
at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createDocument(SessionImpl.java:819)
04-16-2012 09:31 PM
Map<String, Object> properties = new HashMap<String, Object>();
properties.put(PropertyIds.NAME, name);
properties.put(PropertyIds.OBJECT_TYPE_ID, "D:mc:maintChit,P:cm:titled");
properties.put("cm:description",description);
ObjectId docId = session.createDocument(properties,
session.createObjectId("workspace://SpacesStore/8097bc61-da49-4f2f-aee2-1ecefc58977e"),
null,
VersioningState.MAJOR);
Tags
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.