03-29-2007 01:44 AM
{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]]
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 );
}
{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]]
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 );
}
03-29-2007 04:36 PM
Collection<Serializable> renditions = new HashSet<Serializable>();
renditions.add("/www/avm_webapps/ROOT/content/output/processunits/test/goal.html");
renditions.add("/www/avm_webapps/ROOT/content/output/processunits/test/description.html");
avmRemote.setNodeProperty(nodeDesc.getPath(), WCMAppModel.PROP_RENDITIONS, new PropertyValue(DataTypeDefinition.TEXT, (Serializable)renditions));
03-29-2007 07:10 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.