config.xml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <?xml version="1.0" encoding="GB2312"?>
  2. <!--
  3. niuzhao@2005-12-21 DocumentLCListenerForAutoDocBak修改为5,修改前监听
  4. -->
  5. <plugin name="WCM内容组件" version="1.0" id="wcm.content">
  6. <!-- Cached-Object Config For ICachePOMgr BEGIN -->
  7. <extension element-class="com.trs.infra.persistent.cache.CachedObjectConfig" id="CachedObjs">
  8. <cached-object Name="栏目"
  9. ClassName="com.trs.components.wcm.content.persistent.Channel"/>
  10. <cached-object Name="站点"
  11. ClassName="com.trs.components.wcm.content.persistent.WebSite"/>
  12. <cached-object Name="内容超链接"
  13. ClassName="com.trs.components.wcm.content.persistent.ContentLink"/>
  14. </extension>
  15. <!-- Cached-Object Config For ICachePOMgr END -->
  16. <!--Object Types BEGIN-->
  17. <extension element-class="com.trs.infra.persistent.ObjectTypeConfig" id="ObjectTypes">
  18. <object-type ObjectType="103" name="站点" ObjectClassName="com.trs.components.wcm.content.persistent.WebSite"/>
  19. <object-type ObjectType="101" name="栏目" ObjectClassName="com.trs.components.wcm.content.persistent.Channel"/>
  20. <object-type ObjectType="605" name="文档" ObjectClassName="com.trs.components.wcm.content.persistent.Document"/>
  21. </extension>
  22. <!--Object Types END-->
  23. <!-- Right Objects BEGIN -->
  24. <extension element-class="com.trs.cms.auth.config.RightObjectConfig" id="RightObjects">
  25. <!--right-object name="文档权限判断对象" ClassName="com.trs.components.wcm.content.domain.auth.DocumentRightObjImpl"/-->
  26. <!--right-object name="栏目权限判断对象" ClassName="com.trs.components.wcm.content.domain.auth.ChannelRightObjImpl"/-->
  27. </extension>
  28. <!-- Right Objects END -->
  29. <!-- Right Hosts BEGIN -->
  30. <extension element-class="com.trs.cms.auth.config.RightHostConfig" id="RightHosts">
  31. <right-host name="文档权限设置对象" ClassName="com.trs.components.wcm.content.domain.auth.DocumentRightHostImpl"/>
  32. <right-host name="栏目权限设置对象" ClassName="com.trs.components.wcm.content.domain.auth.ChannelRightHostImpl"/>
  33. <right-host name="站点权限设置对象" ClassName="com.trs.components.wcm.content.domain.auth.WebSiteRightHostImpl"/>
  34. </extension>
  35. <!-- Right Objects END -->
  36. <!-- CacheMgrs Config For CacheServer BEGIN -->
  37. <extension element-class="com.trs.infra.support.cache.CacheMgrConfig" id="CacheMgrs">
  38. <cache-manager beanId="IChildrenMgr" name="子栏目缓冲管理器"/>
  39. <cache-manager beanId="IChannelNameMgr" name="栏目名称缓冲管理器"/>
  40. <cache-manager beanId="ReplaceCacheMgr" name="替换内容缓冲管理器"/>
  41. </extension>
  42. <!-- CacheMgrs Config For CacheServer END -->
  43. <!-- Update-Commander Config For UpdateServer BEGIN -->
  44. <extension element-class="com.trs.infra.update.UpdateCommanderConfig" id="WCMContentUpdateCommander">
  45. <update-commander Name="WCM内容升级程序"
  46. ClassName="com.trs.components.wcm.content.ContentUpdateCommanderImpl"/>
  47. </extension>
  48. <!-- Update-Commander Config For UpdateServer END -->
  49. <!--Config For ObjectLCMonitor BEGIN-->
  50. <!--
  51. Listener默认为监控对象的新增、修改、删除前
  52. EventType:
  53. 1:新增
  54. 2:修改后
  55. 3:删除前
  56. 4、删除后
  57. 5、修改前
  58. 多个以逗号隔开
  59. -->
  60. <extension
  61. element-class="com.trs.infra.persistent.listener.MonitorHostConfig"
  62. id="components.wcm.content.ObjectLCMonitor">
  63. <!--站点-->
  64. <monitor-host name="站点"
  65. class-name="com.trs.components.wcm.content.persistent.WebSite">
  66. <listener bean-id="WebSiteLCListenerForAutoDocBak" event-type="3"/>
  67. <listener bean-id="WebSiteLCListenerForSiteUser" event-type="3"/>
  68. <listener bean-id="WebSiteLCListenerForContentLink" event-type="3"/>
  69. <listener bean-id="IChildrenMgr" event-type="3"/>
  70. <listener bean-id="BaseChannelLCListener4ExtField" event-type="4"/>
  71. <listener bean-id="BaseChannelLCListener4Region" event-type="4"/>
  72. <listener bean-id="BaseChannelLCListener4Right" event-type="4"/>
  73. <listener bean-id="BaseChannelLCListener4ObjectMember" event-type="4"/>
  74. </monitor-host>
  75. <!--栏目-->
  76. <monitor-host name="栏目"
  77. class-name="com.trs.components.wcm.content.persistent.Channel">
  78. <listener bean-id="IChannelNameMgr"/>
  79. <listener bean-id="IChildrenMgr"/>
  80. <listener bean-id="ChannelLCListenerForDocument" event-type="2,3"/>
  81. <listener bean-id="ChannelLCListenerForChannelSyn" event-type="3"/>
  82. <listener bean-id="RightHostLCListenerForInherit" event-type="1"/>
  83. <listener bean-id="BaseChannelLCListener4ExtField" event-type="4"/>
  84. <listener bean-id="BaseChannelLCListener4Region" event-type="4"/>
  85. <listener bean-id="BaseChannelLCListener4Right" event-type="4"/>
  86. <listener bean-id="BaseChannelLCListener4ObjectMember" event-type="4"/>
  87. <listener bean-id="ChannelLCListener4ChnlDept" event-type="4"/>
  88. <listener bean-id="ChannelLCListener4MetaView" event-type="4"/>
  89. </monitor-host>
  90. <!--文档-->
  91. <monitor-host name="文档"
  92. class-name="com.trs.components.wcm.content.persistent.Document">
  93. <listener bean-id="ApdHostLCListener" event-type="2,3"/>
  94. <listener bean-id="DocumentLCListenerForRelation" event-type="3"/>
  95. <listener bean-id="DocumentLCListenerForDocReply" event-type="3"/>
  96. <listener bean-id="DocumentLCListenerForDocBak" event-type="3"/>
  97. <listener bean-id="DocumentLCListenerForAutoDocBak" event-type="5"/>
  98. <listener bean-id="DocumentLCListenerForExternalFile" event-type="2,3"/>
  99. <listener bean-id="DocumentLCListenerForRelDocs" event-type="1,2,3"/>
  100. <listener bean-id="DocumentLCListenerForDocForm" event-type="1,2"/>
  101. <listener bean-id="DocumentLCListenerForRight" event-type="4"/>
  102. </monitor-host>
  103. <monitor-host name="文档备份"
  104. class-name="com.trs.components.wcm.content.persistent.DocBak">
  105. <listener bean-id="DocBakLCListenerForApd" event-type="3"/>
  106. </monitor-host>
  107. <!--栏目文档-->
  108. <monitor-host name="栏目文档"
  109. class-name="com.trs.components.wcm.content.persistent.ChnlDoc">
  110. <listener bean-id="ChnlDocLCListenerForPri"/>
  111. <!-- wenyh@2005-8-22 modified,不再监听文档状态的改变产生版本保存. -->
  112. <!--listener bean-id="ChnlDocLCListenerForAutoDocBak" event-type="2"/-->
  113. </monitor-host>
  114. <!--扩展字段-->
  115. <monitor-host name="扩展字段"
  116. class-name="com.trs.cms.content.ExtendedField">
  117. <listener bean-id="ExtendedFieldLCListenerForDocBak"/>
  118. </monitor-host>
  119. <monitor-host name="扩展字段2"
  120. class-name="com.trs.components.wcm.content.persistent.ContentExtField">
  121. <listener bean-id="ContentExtFieldLCListenerForDocFields" event-type="4"/>
  122. <listener bean-id="ContentExtFieldCListenerForDocProps" event-type="4"/>
  123. </monitor-host>
  124. <!-- Replace : 替换内容-->
  125. <monitor-host name="替换内容"
  126. class-name="com.trs.components.wcm.content.persistent.Replace">
  127. <listener bean-id="ReplaceCacheMgr"></listener>
  128. </monitor-host>
  129. <!--用户-->
  130. <monitor-host name="用户" class-name="com.trs.cms.auth.persistent.User">
  131. <listener bean-id="SiteMemberLCListner" event-type="3"/>
  132. </monitor-host>
  133. <!--组织-->
  134. <monitor-host name="组织" class-name="com.trs.cms.auth.persistent.Group">
  135. <listener bean-id="SiteMemberLCListner" event-type="3"/>
  136. <listener bean-id="GroupLCListener4ChnlDept" event-type="4"/>
  137. </monitor-host>
  138. <!--角色-->
  139. <monitor-host name="角色" class-name="com.trs.cms.auth.persistent.Role">
  140. <listener bean-id="SiteMemberLCListner" event-type="3"/>
  141. </monitor-host>
  142. <!--权限-->
  143. <monitor-host name="权限" class-name="com.trs.cms.auth.persistent.Right">
  144. <listener bean-id="RightLCListenerForSynSiteMember" event-type="1,2,3"/>
  145. </monitor-host>
  146. <!--表单栏目分配关系-->
  147. <monitor-host name="表单栏目分配关系" class-name="com.trs.components.infoview.persistent.InfoViewEmploy">
  148. <listener bean-id="InfoViewEmployLCListenerForChannel" event-type="1"/>
  149. </monitor-host>
  150. </extension>
  151. <!--Config For System Collocation BEGIN-->
  152. </plugin>