| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <?xml version="1.0" encoding="GB2312"?>
- <mapping>
- <!--配置wcm对象的版本管理功能-->
- <class name="com.trs.components.wcm.version.config.ObjectVersionConfig" identity="name">
- <map-to xml="object-version-config"/>
- <!-- wcm关联对象唯一标识,在同一配置中要保证id字段唯一 -->
- <field name="id">
- <bind-xml name="id" node="attribute"/>
- </field>
- <!-- wcm对象类型 -->
- <field name="classname">
- <bind-xml name="class" node="attribute"/>
- </field>
- <!-- wcm对象描述 -->
- <field name="desc">
- <bind-xml name="desc" node="attribute"/>
- </field>
- <!-- 权限值 -->
- <field name="right">
- <bind-xml name="right" node="attribute"/>
- </field>
- <!-- wcm对象在版本管理标题栏的标题名称(如:文字库document的版本管理界面文档标题) -->
- <field name="titledesc">
- <bind-xml name="title-desc" node="element"/>
- </field>
- <!-- 是否开启版本管理功能 -->
- <field name="build" type="boolean">
- <bind-xml name="version-build" node="element"/>
- </field>
- <!-- 对象版本管理的排除字段(字段以“,”隔开) -->
- <field name="excludefields">
- <bind-xml name="excludefields" node="element"/>
- </field>
- <!-- 可以保留的最大版本数,超过最大版本数后会删除最旧的版本 -->
- <field name="MaximumVersion" type="integer">
- <bind-xml name="max-version" node="element"/>
- </field>
- <!-- 关联表对象 -->
- <field name="relations" collection="map">
- <bind-xml name="relation-object">
- <class name="org.exolab.castor.mapping.MapItem">
- <!-- 主表的关联字段,命名格式(多级关联用“.”隔开), -->
- <field name="key">
- <bind-xml name="key" node="attribute" />
- </field>
- <!-- 关联对象信息 -->
- <field name="value" type="com.trs.components.wcm.version.config.RelationObjectVersionConfig">
- <bind-xml name="value" node="element"/>
- </field>
- </class>
- </bind-xml>
- </field>
- </class>
-
- <!-- 版本管理关联对象配置文件 -->
- <class name="com.trs.components.wcm.version.config.RelationObjectVersionConfig" identity="name">
- <map-to xml="object"/>
- <!-- wcm对象类型 (此为对象集合,可能存在一对多的映射) -->
- <field name="classname">
- <bind-xml name="class" node="attribute"/>
- </field>
- <!-- wcm关联对象唯一标识,在同一配置中要保证id字段唯一 -->
- <field name="id">
- <bind-xml name="id" node="attribute"/>
- </field>
- <!-- wcm对象描述 -->
- <field name="desc">
- <bind-xml name="desc" node="attribute"/>
- </field>
- <!-- 对象版本管理的排除字段(字段以“,”隔开) -->
- <field name="excludefields">
- <bind-xml name="excludefields" node="element"/>
- </field>
- <!-- 关联表与主表的关联字段 -->
- <field name="relationkey">
- <bind-xml name="relationkey" node="element"/>
- </field>
- </class>
- </mapping>
|