如何列出有关所有Alfresco文件的信息(Postgres SQL)?

编程入门 行业动态 更新时间:2024-10-11 19:18:44
本文介绍了如何列出有关所有Alfresco文件的信息(Postgres SQL)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

Alfresco持久层中的文件节点表示形式:

A file node representation in Alfresco persistent layer:

  • 内容存储在 ALFRESCO_HOME\alf_data\contentstore\ 文件夹
  • 元数据存储在关系数据库中(默认值:PostgreSQL)
  • 用于文本搜索的信息(Lucene)存储在Solr的文档数据库中
  • content is stored in ALFRESCO_HOME\alf_data\contentstore\ folder
  • metadata are stored in relational database (default: PostgreSQL)
  • information for text searching (Lucene) are stored in Solr's document database

哪个Postgres表用于保存新上传文件的元数据? 如何列出有关所有Alfresco文件的信息(Postgres SQL)?

Which Postgres tables are used to keep metadata of new uploaded file? How to list information about all Alfresco's files (Postgres SQL)?

推荐答案

保存文件元数据的表:

The tables that keep files metadata:

SELECT n.id, npn.string_value as filename, cu.content_size, cu.content_url, n.uuid, n.audit_created FROM alf_node as n join alf_node_properties npn on (npn.node_id=n.id and npn.actual_type_n=6 and npn.qname_id in (select id from alf_qname where local_name='name')) join alf_node_properties npc on (npc.node_id=n.id and npc.actual_type_n=21 and npc.qname_id in (select id from alf_qname where local_name='content')) join alf_content_data cd on (cd.id = npc.long_value) join alf_content_url cu on (cd.content_url_id = cu.id) where n.type_qname_id in ( select id from alf_qname where local_name='content' )

更多推荐

如何列出有关所有Alfresco文件的信息(Postgres SQL)?

本文发布于:2023-11-28 14:36:06,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1642810.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   信息   Alfresco   Postgres   SQL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!