Hi,I'm having trouble setting the WCMAppModel.PROP_RENDITIONS PropertyValue. I'm able to set string values, thanks to Eyestreet's Harry Moore.I want to end up with a property that looks like:
{http://www.alfresco.org/model/wcmappmodel/1.0}renditions=PropertyValue[actual-type=SERIALIZABLE, multi-valued=true, value-type=SERIALIZABLE, value=[/www/avm_webapps/ROOT/content/output/processunits/test/goal.html, /www/avm_webapps/ROOT/content/output/processunits/test/description.html]]
I've tried just a simple approach:
setPropertyValue( …, WCMAppModel.PROP_RENDITIONS, "[/www/avm_webapps/ROOT/content/html/processunits/test/goal.html, /www/avm_webapps/ROOT/content/html/processunits/test/description.html]" );
public void setPropertyValue( AVMNodeDescriptor nodeDesc, QName propertyQName, String value )
{
PropertyValue propValue = new PropertyValue( propertyQName, value );
fAVMRemote.setNodeProperty( nodeDesc.getPath(), propertyQName, propValue );
getPropertyValue( nodeDesc, propertyQName );
}
But I end up with
{http://www.alfresco.org/model/wcmappmodel/1.0}renditions=PropertyValue[actual-type=SERIALIZABLE, multi-valued=true, value-type=STRING, value=[/www/avm_webapps/ROOT/content/html/processunits/Alternative Evaluation/goal.html, /www/avm_webapps/ROOT/content/html/processunits/Alternative Evaluation/description.html]]
I've also tried:
public void setPropertyMultiValue( AVMNodeDescriptor nodeDesc, QName propertyQName, String value )
{
PropertyValue propValue = new PropertyValue();// propertyQName, value );
propValue.setSerializableValue( value );
propValue.setMultiValued( true );
propValue.setActualType( "SERIALIZABLE" );
//propValue.setStringValue( value );
fAVMRemote.setNodeProperty( nodeDesc.getPath(), propertyQName, propValue );
getPropertyValue( nodeDesc, propertyQName );
}
I'm guessing there is an Alfresco SDK object I should be passing to PropertyValue as the value.Any help is much appreciated!