1

CMIS 1.1 标准在2.1.4.3.3 中cmis:contentStreamFileName有一个Orderable属性,CMIS 存储库可以选择将其设置为 true 或 false。

作为在特定存储库上具有会话的 CMIS 客户端,如何判断该存储库是否Orderable具有cmis:contentStreamFileName.

最好使用 DotCMIS 或 PortCMIS 或 OpenCMIS。

化学示例网站的示例展示了如何获取存储库功能,但不是这种类型。

4

1 回答 1

1

您可以获得类型的定义,然后对于您感兴趣的类型,检查您感兴趣的属性,例如使用 OpenCMIS 的 Java 示例:

ObjectType typeDef = getSession().getTypeDefinition("cmis:document");
Map<String, PropertyDefinition<?>> propDefs = typeDef.getPropertyDefinitions();
PropertyDefinition<?> propDef = propDefs.get("cmis:contentStreamFileName");
System.out.println(String.format("Is %s orderable? %s", propDef.getId(), propDef.isOrderable()));

针对 Alfresco 5.2 CE 和针对 Chemistry 0.11 运行此命令在两种情况下都返回 false:

Is cmis:contentStreamFileName orderable? false
于 2016-09-02T19:31:14.493 回答