openCheck whether cmis:contentStreamFilename is Orderable



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

作为在特定存储库上具有会话的CMIS客户端,如何判断该存储库的Orderable对于cmis:contentStreamFileName是true还是false。

优选使用DotCMS或PortCMIS或OpenCMIS。

Chemistry samples网站上有一些示例显示了如何获得存储库功能,但不是这样的。

您可以获得类型的定义,然后对于您感兴趣的类型,检查您感兴趣地属性,例如使用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运行此操作均返回错误:

Is cmis:contentStreamFileName orderable? false

相关内容

最新更新