This has been fixed now. The NamedValue class now has two additional properties, isMultiValue and values. If you want to set a multi-valued property then set the isMultiValue property to true (it will be false by default) and instead of setting the value property, instead set the values property with a string array of values.
CMLUpdate cmlUpdate = new CMLUpdate(properties, new Predicate(new Reference[]{reference}, null, null), null); CML cml = new CML(); cml.setUpdate(new CMLUpdate[]{cmlUpdate}); repositoryService.update(cml);
In Alfresco 1.3 Web Client not exists the NamedValue(String, String) constructor, but there is a NamedValue(String, boolean, String, String[]) constructor and the boolean parameter tell me if i'm going to use the third or the fourth parameter….
Is it not better two methods?, NamedValue(String, String) and NamedValue(String, String[])? I cant see the reason for that two methods…