Dear Florian, I hope this email finds you well. I am writing to request your help in the issue I have.
I can successfully migrate documents from my sharepoint site to Alfresco using opencmis. But I want to apply aspects when uploading them in Alfresco. I read and was trying to use OpenCMIS extention, I had set the alfresco object Factory in my repo like this: parameter.put(SessionParameter.OBJECT_FACTORY_CLASS, "org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl"); And I want to apply a custom aspect to my newly created documents. but before reaching there when I try to cast my docs to : AlfrescoDocument alfDoc=(AlfrescoDocument) documentsToCreate; so that I call the aspects before creating the documents. it keeps throwing me an classCastException that my documents can not be casted into an alfresco documents. Is there any thing I am missing? I really want to apply one custom aspect type already created in our repo to all these new documents. Any advise all help will be highly appreciated as I am reaching at the final stage of my project. Regards, Neza