【发布时间】:2016-12-22 17:29:14
【问题描述】:
我想列出所有附加到 cmis 对象的属性,例如 cmis:document。这个想法是像在 opencmis-workbench 中一样返回属性名称、id、描述
知道我能得到同样的结果吗?
更新: 感谢@Florian Müller,我找到了解决方案:
String myType = "cmis:document";
ObjectType type = session.getTypeDefinition(myType);
Map<String, PropertyDefinition<?>> propertyDefinitions = type.getPropertyDefinitions();
propertyDefinitions.each { name, value ->
println "name = ${name}, value = ${value.getDisplayName()}"
}
【问题讨论】:
标签: opencmis