更新现有资产属性

使用 RAMSession.put(IRAMSessionObject, IProgressMonitor) 来落实对新的或已更新的全局资产属性对象的更改。只有存储库管理员才能创建全局资产属性。

                //Update Name, Description and valid values
                newAssetAttribute.setName("Updated Asset Attribute Name");
                newAssetAttribute.setDescription("Updated Asset Attribute Description");
                newAssetAttribute.setValidValues(new String[]{"value 3", "new value"});
                newAssetAttribute.setSingleSetting(true);
                
                session.put(newAssetAttribute, new NullProgressMonitor());

反馈