配置标识管理 (IMAN)
IMANConfig.xml 配置文件可用于根据 SIM 数据类型配置束源的类型和源的标识属性及其他属性。它使 TAL 能够处理来自不同创作系统的各种束并将标识分配给各个对象。这些属性用于生成 IMAN ID。必须进行此配置。
使用该文件可配置某一给定 objectType 和源的标识属性。objectType 是针对数据定义的 Servigistics InService 内容类型 (如 PDFM、IEXML 等)。源是输入数据的发起人。这可在 PublishInfo.xml 文件的 bundle-source 属性中进行设置。如果在该文件中未配置 objectType,则会使用默认配置。
以下是 IMANConfig.xml 文件条目的示例:
<Source name="com.acme.pro" priority="4">
<Type name="PDFM">
<IdentifyingAttributes>
<Property name="uri"/>
<Property name="PTC_DD_LANGUAGE"/>
</IdentifyingAttributes>
<OtherAttributes>
<Property name="objNumber"/>
<Property name="orgName"/>
<Property name="SIM.authoringLanguage"/>
<Property name="SIM.lastUpdated"/>
</OtherAttributes>
</Type>
<Type name="IEXML">
<IdentifyingAttributes>
<Property name="uri"/>
<Property name="PTC_DD_LANGUAGE"/>
</IdentifyingAttributes>
<OtherAttributes>
<Property name="objNumber"/>
<Property name="orgName"/>
<Property name="SIM.authoringLanguage"/>
<Property name="SIM.lastUpdated"/>
</OtherAttributes>
</Type>
<Type name="PARTS" CascadeSeq="FLW">
<IdentifyingAttributes>
<Property name="uri"/>
</IdentifyingAttributes>
<OtherAttributes>
<Property name="objNumber"/>
<Property name="orgName"/>
</OtherAttributes>
</Type>
<Type>
<IdentifyingAttributes>
<Property name="uri"/>
</IdentifyingAttributes>
<OtherAttributes>
<Property name="objNumber"/>
<Property name="orgName"/>
</OtherAttributes>
</Type>
</Source>
Source 标记是条目的外部标记。它具有以下属性:
• name - 提供数据源。
该属性的值源于 PublishInfo.xml 文件中的 bundle-source 属性。
• priority - 确定是否授权源来更新对象类型。
此属性用于确定哪些源可以更新对象类型。如果未设置 priority,将使用默认值 0。
例如,考虑以下两个源:
<Source name="com.acme.pro" priority="4">
…
</Source>
<Source name="PTC" priority="3">
…
</Source>
PARTSLIST 对象 PL1 属于源 PTC。源 com.acme.pro 将尝试更新对象。由于 com.acme.pro 具有与 PTC 相同或比其更高的 priority 值,因此 Servigistics InService 允许更新。但是,如果 PTC 尝试更新 com.acme.pro 所拥有的对象,则不允许更新。
Type 标记包含在 Source 标记中。如果此标记不具有任何属性,则该标记是任何在文件中未明确定义的源的 objectType 值的默认设置。示例文件中的最后一个 Type 条目显示默认设置。
Type 具有下列属性:
• name - 指定提供了设置的 objectType。
• CascadeSeq - 指定用于二级搜索的源。
默认情况下,Servigistics InService 使用 IdentifyingAttributes 标记中定义的属性搜索给定的 objectType。如果搜索失败且在 CascadeSeq 中定义了备用源,则 Servigistics InService 将根据 IMANConfig.xml 条目中 objectType 值的 IdentifyingAttributes 的定义方式进行二级搜索,以搜索在 CascadeSeq 属性中指定的源。
在示例文件中,PARTS 对象类型将 CascadeSeq 设置为 FLW,且将标识属性设置为 uri。对于 FLW 源,PARTS 对象类型将标识属性设置为 objNumber 和 orgName。根据 uri 完成 PARTS 对象的一级搜索。如果搜索失败,将根据 objNumber 和 orgName 的组合进行二级搜索。
在任何情况下,如果搜索最终失败,便会在对象类型的 IMAN 表中创建对象的新条目。
Type 标记包含以下其他标记:
• IdentifyingAttributes - 指定在搜索对象类型时要使用的属性。
此标记包含一个或多个 Property 标记。每个标记的 name 属性均包含属性名称
• OtherAttributes - 指定与对象类型相关联的其他属性。
此标记还包含一个或多个 Property 标记。