chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhardt Willy <>
Subject Re : update PropertyIds.OBJECT_TYPE_ID
Date Thu, 01 Sep 2011 13:17:50 GMT
Hi Martin,

Thanks to point me on the specification  I didn't have the reaction to look there. So I will
use an Alfresco web script to work around that limitation. 

To avoid an authentication I would try to use the cmis session to call web script request.
I see the class 

org.apache.chemistry.opencmis.client.bindings.spi.atompub.HttpUtils with a method invokeGET
that need a BindingSession as parameter. Have you an idea how to build a BindingSession from
the org.apache.chemistry.opencmis.client.api.Session ? 



De : "Hermes, Martin" <>
À : "" <>
Envoyé le : Mercredi 31 Août 2011 8h15
Objet : RE: update PropertyIds.OBJECT_TYPE_ID

Hi Willy,
the property definition of the property object_type_id has according to the CMIS specification
"updatability = oncreate". This means the property value can only be updated during the create
operation of an object. 
Exceptions are in this case repository specific.


-----Original Message-----
From: Reinhardt Willy [] 
Sent: Dienstag, 30. August 2011 17:55
Subject: update PropertyIds.OBJECT_TYPE_ID


Based on sample 

I tried to update properties, it works fine for property I create like Date, String, ...

But I couldn't update the property  "cmis:objectTypeId" nothing append no error, no exception.

Code is:
CmisObject obj = this.sessionBean.getSession().getObject(documentId); 
HashMap<String, Object> properties = new HashMap<String, Object>();
properties.put(PropertyIds.OBJECT_TYPE_ID, "laa:Facture");

My question:
Could I change the object type id using updateProperties ?
If not how could I update the  OBJECT_TYPE_ID ?

Thanks for your help.

- I am using Alfresco 4.0.0 as DM
- The new type can be setted (I can change it on Alfresco interface)
- Chemistry client 0.4

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message