chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller <florian.muel...@alfresco.com>
Subject Re: Update Object Type
Date Mon, 24 Jan 2011 14:12:47 GMT
Hi Mano,

It is not possible to change the object type after creation.
OpenCMIS silently removes the property from the properties map because 
it is not valid for a property update.


Regards,

Florian



On 24/01/2011 14:07, Mano Swerts wrote:
> Hi all,
>
> I use OpenCMIS 0.2 to connect to an Alfresco 3.4 repository.
>
> I try to update the object type using the following code:
>
> Map<String, Object>  properties = new HashMap<String, Object>();
> properties.put(PropertyIds.OBJECT_TYPE_ID, "D:" + ParkTypeIds.EMPLOYEE_DOCUMENT);
> document.updateProperties(properties);
>
> But this doesn't work. There is no exception, but the type doesn't change.
> Is it possible to change the type after creation?
>
> Kind regards,
>
> Mano Swerts
>
>
>
> _________________________________________________
>
>   We published a new company movie featuring YOU!
>           See http://www.aca-it.be/movie
> _________________________________________________
>
>


Mime
View raw message