Webcenter Sites REST API:如何在资产上添加多个属性?

Webcenter Sites REST API: How to add multiple attributes on asset?

我创建了一个具有多重属性的资产,例如一组图像。

我想使用 Webcenter Sites REST 向该资产插入图像 API,但我不知道怎么做。

单个属性是这样的:

sourceAssetAttribute = new Attribute();
  sourceAssetAttributeData = new Data();
  sourceAssetAttribute.setName("FSIILongDescription");
  sourceAssetAttributeData.setStringValue("Test Long Description");
  sourceAssetAttribute.setData(sourceAssetAttributeData);
  sourceAsset.getAttributes().add(sourceAssetAttribute);

而倍数是怎样的?

终于明白了

https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=563491042188574&parent=DOCUMENT&sourceId=1528601.1&id=1510322.1&_afrWindowMode=0&_adf.ctrl-state=m55lxhl4z_58

是这样的:

sourceAssetAttribute = new Attribute();
  sourceAssetAttributeData = new Data();
  sourceAssetAttribute.setName("attribute_name");

sourceAssetAttributeData.getStringLists().add(0,"Asset_type:"+asset_id));
sourceAssetAttributeData.getStringLists().add(1,"Asset_type:"+asset_id));

sourceAssetAttribute.setData(sourceAssetAttributeData);
sourceAsset.getAttributes().add(sourceAssetAttribute);