Hi,
Currently Alfresco stores properties like node-uuid, modifier,
creator, store-identifier, store-protocol for each node.
I need to associate custom properties with content nodes.
The properties are like comments, authors, status. etc.
Is there any way I can store this custom properties for the node?
In Alfresco 1.2 I had tried storing the properties by passing them
at creation time and it worked fine as follows.
NamedValue[] properties = new NamedValue[]{
….
….
new NamedValue("AUTHORS", "sam,andy,peter"),
new NamedValue("STATUS", "COMPLETED"),
….
….
…. }
CMLCreate create = new CMLCreate("1", parentReference, Constants.TYPE_CONTENT, properties);
CML cml = new CML();
cml.setCreate(new CMLCreate[]{create});
UpdateResult[] result = WebServiceFactory.getRepositoryService().update(cml);
This code worked fine in Alfresco 1.2.
Recently I tried Alfresco 1.4 and it doesn't work.
I get the NamedValue for the custom properties but the value is NULL.
I am not sure if this is purposely done in version 1.4?
Is there any way I can associate custom properties in Alfresco nodes.
Regards,
Santosh Prabhu