mapping.xml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?xml version="1.0" encoding="GB2312"?>
  2. <mapping>
  3. <description>***-components config mapping</description>
  4. <!--Example-->
  5. <!--<class name="com.trs.infra.config.persistent.BeanConfig" identity="id">
  6. <map-to xml="bean"/>
  7. <field name="id">
  8. <bind-xml name="id" node="attribute"/>
  9. </field>
  10. <field name="className">
  11. <bind-xml name="class" node="attribute"/>
  12. </field>
  13. <field name="singleton" type="boolean">
  14. <bind-xml name="singleton" node="attribute"/>
  15. </field>
  16. </class>
  17. -->
  18. <!--Mapping for Message Sending Style Config-->
  19. <class name="com.trs.components.common.message.MessageSendingConfig" identity="name">
  20. <map-to xml="msg-sender"/>
  21. <field name="name">
  22. <bind-xml name="name" node="element"/>
  23. </field>
  24. <field name="description">
  25. <bind-xml name="description" node="element"/>
  26. </field>
  27. <field name="worker" required="true">
  28. <bind-xml name="worker" node="element"/>
  29. </field>
  30. </class>
  31. <!--Mapping for Message Notification Scheme Config-->
  32. <class name="com.trs.components.common.message.notify.NotificationSchemeConfig" identity="event">
  33. <map-to xml="scheme"/>
  34. <field name="event">
  35. <bind-xml name="event" node="attribute"/>
  36. </field>
  37. <field name="enabled" type="boolean">
  38. <bind-xml name="enabled" node="attribute"/>
  39. </field>
  40. <field name="title" required="true">
  41. <bind-xml name="title" node="element"/>
  42. </field>
  43. <field name="msgBody">
  44. <bind-xml name="msg-body" node="element"/>
  45. </field>
  46. <field name="notifications" collection="collection"
  47. type="com.trs.components.common.message.notify.NotificationConfig">
  48. <bind-xml name="notification" reference="true"/>
  49. </field>
  50. </class>
  51. <!--Mapping for Message Notification Config-->
  52. <class name="com.trs.components.common.message.notify.NotificationConfig"
  53. identity="sendType">
  54. <map-to xml="notification"/>
  55. <field name="sendType" required="true">
  56. <bind-xml name="send-type" node="element"/>
  57. </field>
  58. <field name="userNames" required="true">
  59. <bind-xml name="users" node="element"/>
  60. </field>
  61. <field name="groupIds" required="true">
  62. <bind-xml name="groups" node="element"/>
  63. </field>
  64. <field name="roleIds" required="true">
  65. <bind-xml name="roles" node="element"/>
  66. </field>
  67. </class>
  68. </mapping>