config.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. <?xml version="1.0" encoding="GB2312"?>
  2. <plugin name="WCM内容发布组件-配置" version="1.0" id="wcm.publish">
  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. <monitor-host name="站点"
  19. class-name="com.trs.components.wcm.content.persistent.WebSite">
  20. <listener bean-id="PublishFolderLCListener" event-type="3"/>
  21. <listener bean-id="WCMFolderLCListener" event-type="2,3"/>
  22. </monitor-host>
  23. <!--栏目-->
  24. <monitor-host name="栏目"
  25. class-name="com.trs.components.wcm.content.persistent.Channel">
  26. <listener bean-id="PublishFolderLCListener" event-type="3"/>
  27. <listener bean-id="WCMFolderLCListener" event-type="2,3"/>
  28. <listener bean-id="WCMFolderPublishConfigLCListener" event-type="5"/>
  29. <listener bean-id="ChannelLCListenerForSpeical" event-type="3"/>
  30. </monitor-host>
  31. <!--文档-->
  32. <monitor-host name="文档"
  33. class-name="com.trs.components.wcm.content.persistent.Document">
  34. <listener bean-id="PublishContentCListener" event-type="3"/>
  35. <listener bean-id="DocumentLCListenerForPublish" event-type="2"/>
  36. </monitor-host>
  37. <!--栏目文档-->
  38. <monitor-host name="栏目文档"
  39. class-name="com.trs.components.wcm.content.persistent.ChnlDoc">
  40. <listener bean-id="ChnlDocLCListnerForPublish"
  41. event-type="1,2,3"/>
  42. <listener bean-id="ChnlDocLCListenerForPreNextPage"
  43. event-type="2,5"/>
  44. </monitor-host>
  45. <!-- 站点栏目可发布状态 -->
  46. <monitor-host name="站点栏目可发布状态"
  47. class-name="com.trs.components.wcm.publish.WCMPubStatusConfig">
  48. <listener bean-id="IFolderPubStatusCacheMgr"/>
  49. </monitor-host>
  50. </extension>
  51. <!--Config For System Collocation BEGIN-->
  52. <!--Config for wcm Publish BEGIN-->
  53. <extension
  54. element-class="com.trs.components.common.publish.config.persistent.PublishServerConfig"
  55. id="WCMPublishServer">
  56. <publish-server>
  57. <!-- to define the publish folder types -->
  58. <folder-types>
  59. <folder name="Channel"
  60. class-name="com.trs.components.wcm.publish.element.PublishFolderChannelImpl"
  61. />
  62. <folder name="WebSite"
  63. class-name="com.trs.components.wcm.publish.element.PublishFolderWebSiteImpl"
  64. />
  65. </folder-types>
  66. <!-- to define the publish content types -->
  67. <content-types>
  68. <content name="Document"
  69. class-name="com.trs.components.wcm.publish.element.PublishContentDocumentImpl"
  70. />
  71. </content-types>
  72. <!-- to define the publish tag formatters -->
  73. <tag-formatters>
  74. <tag-formatter tag-name="TRS_OUTLINE"
  75. class-name="com.trs.components.wcm.publish.tagparser.formater.WCMTagFormatterOutline"
  76. />
  77. <tag-formatter tag-name="TRS_COLUMN"
  78. class-name="com.trs.components.wcm.publish.tagparser.formater.WCMTagFormatterColumn"
  79. />
  80. <tag-formatter tag-name="TRS_ALLCATA"
  81. class-name="com.trs.components.wcm.publish.tagparser.formater.WCMTagFormatterAllCata"
  82. />
  83. <tag-formatter tag-name="TRS_CHNLNAME"
  84. class-name="com.trs.components.wcm.publish.tagparser.formater.WCMTagFormatterChnlName"
  85. />
  86. <tag-formatter tag-name="TRS_CHANNEL"
  87. class-name="com.trs.components.wcm.publish.tagparser.formater.WCMTagFormatterChannel"
  88. />
  89. <tag-formatter tag-name="TRS_PICTURE"
  90. class-name="com.trs.components.wcm.publish.tagparser.formater.WCMTagFormatterPicture"
  91. />
  92. <tag-formatter tag-name="TRS_RECPATH"
  93. class-name="com.trs.components.wcm.publish.tagparser.formater.WCMTagFormatterRecPath"
  94. />
  95. <tag-formatter tag-name="TRS_BIGNEWS"
  96. class-name="com.trs.components.wcm.publish.tagparser.formater.WCMTagFormatterBigNews"
  97. />
  98. <tag-formatter tag-name="TRS_PICNEWS"
  99. class-name="com.trs.components.wcm.publish.tagparser.formater.WCMTagFormatterPicNews"
  100. />
  101. <tag-formatter tag-name="TRS_RELNEWS"
  102. class-name="com.trs.components.wcm.publish.tagparser.formater.WCMTagFormatterRelNews"
  103. />
  104. <tag-formatter tag-name="TRS_TEMPLATE"
  105. class-name="com.trs.components.wcm.publish.tagparser.formater.WCMTagFormatterTemplate"
  106. />
  107. </tag-formatters>
  108. </publish-server>
  109. <!--Publish Server Config END-->
  110. </extension>
  111. <!--Config for wcm Publish END-->
  112. <!--Config for Message Notification Scheme Style BEGIN-->
  113. <extension
  114. element-class="com.trs.components.common.message.notify.NotificationSchemeConfig"
  115. id="NotificationScheme">
  116. <scheme event="Publish.WhenTaskFinished" enabled="false">
  117. <title>发布成功提示:${title}已经成功完成</title>
  118. <msg-body><![CDATA[${title}已经成功完成(发布任务ID=${Id})。
  119. 详细信息请查看您的发布记录(在主菜单中点击"管理工具>>发布监控>>我的队列>>完成队列")]]></msg-body>
  120. <notification>
  121. <send-type>Message</send-type>
  122. <users>${Submitter}</users>
  123. </notification>
  124. </scheme>
  125. <scheme event="Publish.WhenTaskFinishedWithWarning" enabled="false">
  126. <title>发布警告提示:${title}带警告完成</title>
  127. <msg-body><![CDATA[${title}带警告完成(发布任务ID=${Id})。
  128. 详细信息请查看您的发布记录(在主菜单中点击"管理工具>>发布监控>>我的队列>>完成队列")]]></msg-body>
  129. <notification>
  130. <send-type>Message</send-type>
  131. <users>${Submitter},admin</users>
  132. </notification>
  133. <notification>
  134. <send-type>Email</send-type>
  135. <groups>1</groups>
  136. </notification>
  137. </scheme>
  138. <scheme event="Publish.WhenTaskFailed" enabled="true">
  139. <title>发布错误提示:${title}</title>
  140. <msg-body><![CDATA[${title}已经失败(发布任务ID=${Id})。
  141. 详细信息请查看您的发布记录(在主菜单中点击"管理工具>>发布监控>>我的队列>>错误队列")]]></msg-body>
  142. <notification>
  143. <send-type>Message</send-type>
  144. <users>${Submitter},admin</users>
  145. </notification>
  146. <notification>
  147. <send-type>Email</send-type>
  148. <groups></groups>
  149. </notification>
  150. </scheme>
  151. <scheme event="Publish.WhenTemplateAppendixNotFound" enabled="false">
  152. <title>警告:模板图片没有找到??${TemplateInfo}</title>
  153. <msg-body><![CDATA[${Message}]]></msg-body>
  154. <notification>
  155. <send-type>Message</send-type>
  156. <users>admin</users>
  157. </notification>
  158. <notification>
  159. <send-type>Email</send-type>
  160. <groups>1</groups>
  161. </notification>
  162. </scheme>
  163. <scheme event="Publish.WhenTempateParseAngelFailed" enabled="false">
  164. <title>错误:模板解析失败??${TemplateInfo}</title>
  165. <msg-body><![CDATA[${Message}]]></msg-body>
  166. <notification>
  167. <send-type>Message</send-type>
  168. <users>admin</users>
  169. </notification>
  170. <notification>
  171. <send-type>Email</send-type>
  172. <groups>1</groups>
  173. </notification>
  174. </scheme>
  175. <scheme event="Publish.WhenMakeFTPConnectionError" enabled="false">
  176. <title>错误:FTP分发服务器初始化失败??${FTPDistributionInfo}</title>
  177. <msg-body><![CDATA[${Message}]]></msg-body>
  178. <notification>
  179. <send-type>Message</send-type>
  180. <users>admin</users>
  181. </notification>
  182. <notification>
  183. <send-type>Email</send-type>
  184. <groups>1</groups>
  185. </notification>
  186. </scheme>
  187. </extension>
  188. <!--Config for Message Notification Scheme Style END-->
  189. </plugin>