config.xml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?xml version="1.0" encoding="GB2312"?>
  2. <plugin name="内容同步" version="1.0" id="content.syn">
  3. <!--Config For ObjectLCMonitor BEGIN-->
  4. <!--
  5. Listener默认为监控对象的新增、修改、删除前
  6. EventType:
  7. 1:新增
  8. 2:修改后
  9. 3:删除前
  10. 4、删除后
  11. 5、修改前
  12. 多个以逗号隔开
  13. -->
  14. <extension
  15. element-class="com.trs.infra.persistent.listener.MonitorHostConfig"
  16. id="components.wcm.content.ObjectLCMonitor">
  17. <!--监听文字库、图片库和视频库中的数据,以便新建时触发-->
  18. <!--由于引用文档也要被同步,所以监听的对象要做变化
  19. <monitor-host name="文档"
  20. class-name="com.trs.components.wcm.content.persistent.Document">
  21. <listener bean-id="IContentSynMgr" event-type="1"/>
  22. </monitor-host>
  23. -->
  24. <monitor-host name="栏目文档"
  25. class-name="com.trs.components.wcm.content.persistent.ChnlDoc">
  26. <listener bean-id="IContentSynMgr" event-type="1"/>
  27. </monitor-host>
  28. <monitor-host name="栏目文档"
  29. class-name="com.trs.components.wcm.content.persistent.ChnlDoc">
  30. <listener bean-id="IContentSynMgr" event-type="2"/>
  31. </monitor-host>
  32. <!--监听元数据中的数据,以便新建时触发-->
  33. <monitor-host name="元数据"
  34. class-name="com.trs.cms.content.CMSObjDefaultImpl">
  35. <listener bean-id="IContentSynMgr" event-type="1"/>
  36. </monitor-host>
  37. </extension>
  38. <!--Config For System Collocation BEGIN-->
  39. </plugin>