gpt4 book ai didi

alfresco - 如何在露天跟踪已删除的文件

转载 作者:行者123 更新时间:2023-12-03 06:35:19 28 4
gpt4 key购买 nike

我不知道这个问题是否常见。我想跟踪垃圾箱中删除的文件的记录。我刚刚读到删除后它将进入内容存储。已删除,那么我如何获取已删除文件的详细信息。

最佳答案

您可以使用搜索服务来查找垃圾桶中的所有节点。它们存在于 archive://SpacesStore 中,就像工作空间://SpacesStore 中一样。

  String query = "@cm\\:title:mytitle.doc";
searchService.query(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, SearchService.LANGUAGE_FTS, )

如果您删除文件,它将进入垃圾桶并进入 archive://SpacesStore 。它将永远保留在那里,除非您(或可选的垃圾桶清洁器模块)将其从垃圾桶中清空。清空垃圾桶后,它仍将在 archive://SpacesStore 中保留 14 天。 14 天后,它将从数据库中删除,内容将移至 contentstore.deleted

已从垃圾桶中清空的节点,数据库中的所有引用(元数据)都已删除,因此无法再以编程方式访问它们。唯一剩下的是 contentstore.deleted 中的原始内容。

关于露天内容删除的一个很好的解释在这里: http://blyx.com/2014/08/18/understanding-alfresco-content-deletion/

Phase 2- Any user or admin (or trashcan cleaner) empties the trashcan: That means the content is marked as an “orphan” and after a pre-determined amount of time elapses, the orphaned content item ris moved from the alf_data/contentstore directory to alf_data/contentstore.deleted directory. Internally at DB level a timestamp (unix format) is added to alf_content_url.orphan_time field where an internal process called contentStoreCleanerJobDetail will check how many long the content has been orphaned.,f it is more than 14 days old, (system.content.orphanProtectDays option) .bin file is moved to contentstore.deleted. Finally, another process will purge all of its references in the database by running nodeServiceCleanupJobDetail and once the index knows the node has bean removed, the indexes will be purged as well.

关于alfresco - 如何在露天跟踪已删除的文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35909700/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com