cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble adding values to cm:title and cm:description

sindhu
Champ in-the-making
Champ in-the-making
I am facing the same exception as mentioned above such as "not found" exception.

properties[PropertyIds.ObjectTypeId] = "sampleSmiley Surprisedutlook_doc,P:cm:titled";   
                 properties["cm:title"] = title;

sampleSmiley Surprisedutlook_doc is my custom content type and I have added mandatory aspects cm:titled in it. Eventhough i could not set values to cm:title and cm:description.

Please help!!
3 REPLIES 3

jpotts
World-Class Innovator
World-Class Innovator
Sindhu,

When you are getting the CMIS session, are you using the Alfresco object factory, like this?

parameter.put(SessionParameter.OBJECT_FACTORY_CLASS, "org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl");


Jeff

sindhu
Champ in-the-making
Champ in-the-making
Hi Jeff,

I am using Dotcmis implementation of Alfresco. When I tried to use the Objectfactoryclass as "org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl" I faced "forbidden" exception. So, as I am using Dotcmis I have used "DotCMIS.Client.Impl.ObjectFactory" as objectfactoryclass as follows:

parameters[SessionParameter.ObjectFactoryClass] = "DotCMIS.Client.Impl.ObjectFactory";

Eventhough I could not work through P:cm:titled and cannot set values to cm:title and cm:description while creating a document. And as I am using dotcmis Alfrescofolder and Alfrescodocument are not supported in my project.

Please help!!!

kaynezhang
World-Class Innovator
World-Class Innovator
sampleSmiley Surprisedutlook_doc is your custom content  type ,you should write it like this:

properties.put(PropertyIds.OBJECT_TYPE_ID, "D:sampleSmiley Surprisedutlook_doc,P:cm:titled");
Getting started

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.