如何修改Alfresco的现成审核配置

编程入门 行业动态 更新时间:2024-10-23 07:25:38
本文介绍了如何修改Alfresco的现成审核配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试修改Alfresco 5中现成捆绑的 CMISChangeLog审核应用程序的PathMappings。

I am trying to modify the PathMappings of the "CMISChangeLog" audit application bundled out-of-the-box in Alfresco 5.

我在以下位置找到了这些PathMappings: alfresco-audit-cmis.xml (可以在Alfresco的源代码中找到),因此我修改了此XML文件并将其放入 tomcat / shared / classes /alfresco/extension/audit/alfresco-audit-cmis.xml (这种想法会覆盖现成的应用程序),然后重新启动Alfresco。问题:

I have found these PathMappings in alfresco-audit-cmis.xml which can be found in Alfresco's source code, so I modified this XML file and put it into tomcat/shared/classes/alfresco/extension/audit/alfresco-audit-cmis.xml (thinking that would override the out-of-the-box application) before restarting Alfresco. Problem:

ERROR [audit.model.AuditModelRegistryImpl] Failed to load audit model: file:/home/nico/alfresco/tomcat/shared/classes/alfresco/extension/audit/alfresco-audit-cmis.xml org.alfresco.repo.audit.model.AuditModelException: 00120000 Audit application key 'CMISChangeLog' is used by: AuditApplication[ name=CMISChangeLog, id=3, disabledPathsId=381] at org.alfresco.repo.audit.model.AuditModelRegistryImpl$AuditModelRegistryState.cacheAuditElements(AuditModelRegistryImpl.java:646)

如何覆盖此开箱即用的审计应用程序?

How to override this out-of-the-box audit application?

通过我的服务器进行抓捕确认默认审核应用程序的XML文件存储在 alf_data / contentstore / 2017/12/22/18/23 / 82dfdccd-6ab9-4091-8b7c-d37d4bcf1627.bin 我在节点浏览器中找不到它:

Grepping through my server I found out that the default audit application's XML file is stored at alf_data/contentstore/2017/12/22/18/23/82dfdccd-6ab9-4091-8b7c-d37d4bcf1627.bin but I haven't found it in the Node Browser:

注意:我不想创建 new 审核应用程序。我必须修改现有的(,因为我希望Alfresco的CMIS ChangeLog能够考虑到更多事件)。

Note: I don't want to create a new audit application. I must modify the existing one (because I want Alfresco's CMIS ChangeLog to take into account more events).

推荐答案

该XML文件实际上位于 alfresco-repository-5.2.g.jar 中,该文件本身可以在Alfresco的WAR文件中找到。

The XML file is actually in alfresco-repository-5.2.g.jar, which itself can be found in Alfresco's WAR file.

因此,如果您已经在运行Alfresco服务器,请执行以下步骤:

So, if you have an already running Alfresco server, here is the procedure:

  • 停止Alfresco
  • mkdir -p / tmp / unjar
  • cd / tmp / unjar
  • 解压缩$ ALFRESCO / tomcat / webapps / alfresco / WEB-INF / lib / alfresco-repository-5.2.g.jar (如有必要,可使用其他版本号)
  • 在提取的文件内进行所需的修改 alfresco / audit / alfresco-audit-cmis .xml
  • zip -r ../alfresco-repository-5.2.g-custom.jar *
  • cp ../alfresco-repository-5.2.g-custom.jar ALFRESCO / tomcat / webapps / alfresco / WEB-INF / lib /
  • 重新启动露天演出
  • Stop Alfresco
  • mkdir -p /tmp/unjar
  • cd /tmp/unjar
  • unzip $ALFRESCO/tomcat/webapps/alfresco/WEB-INF/lib/alfresco-repository-5.2.g.jar (adapt for another version number if necessary)
  • Do the modifications you want inside the extracted file alfresco/audit/alfresco-audit-cmis.xml
  • zip -r ../alfresco-repository-5.2.g-custom.jar *
  • cp ../alfresco-repository-5.2.g-custom.jar ALFRESCO/tomcat/webapps/alfresco/WEB-INF/lib/
  • Restart Alfresco
  • 更多推荐

    如何修改Alfresco的现成审核配置

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

    发布评论

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

    >www.elefans.com

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