Thanks for the help.
Now, we are using Alfresco extension jar version 1.0 and openmcmis version 0.10.0 versions.
But now the code fails with exception:
Caused by: org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: Document is not the latest version!
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:458)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.put(AbstractAtomPubService.java:653)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.put(AbstractAtomPubService.java:640)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.updateProperties(ObjectServiceImpl.java:333)
at org.apache.chemistry.opencmis.client.runtime.AbstractCmisObject.updateProperties(AbstractCmisObject.java:343)
at org.alfresco.cmis.client.impl.AlfrescoDocumentImpl.updateProperties(AlfrescoDocumentImpl.java:64)
at org.apache.chemistry.opencmis.client.runtime.AbstractCmisObject.updateProperties(AbstractCmisObject.java:307)
the code is:
org.apache.chemistry.opencmis.client.api.Document doc = targetFolder.createDocument(propertiesDocument, contentStream,
VersioningState.MAJOR);
AlfrescoDocument alfrescoDoc = (AlfrescoDocument) doc;
alfrescoDoc.addAspect("P:cm:taggable");
Map<String, Object> properties = new HashMap<String, Object>();
properties.put("cm:description", "My taggable document");
alfrescoDoc.updateProperties(properties);
It fails on the last line.
Please help.