【问题标题】:How to know content type of an item stored in alfresco repository?如何知道存储在露天存储库中的项目的内容类型?
【发布时间】:2013-07-24 11:53:52
【问题描述】:

我在 alfresco 存储库中创建了许多自定义内容类型,并且我正在 alfresco 中上传这些类型的许多项目。

上传后,我想确定露天项目的内容类型,例如 cm:content 或 lj:doc 或 lj:invoice 等。我尝试使用 ContentService 和 DictionaryService 但没有帮助。

我该怎么做?

问候。

【问题讨论】:

    标签: content-management-system alfresco


    【解决方案1】:

    使用节点服务: nodeService.getType(NodeRef nodeRef) 返回 QName

    【讨论】:

      【解决方案2】:

      有关内容类型的更多信息,您也可以使用 content.mimetype !

      【讨论】:

      • content.mimetype 是 d:content 属性的 mimetype。那不是节点的类型。
      • 仅当您想了解有关内容类型节点的更多信息时
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-02-27
      • 2020-07-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多