エンタープライズ管理 > ビジネス管理変更プロモーション > ビジネス管理変更プロモーションのコマンドラインユーティリティの実行 > 変更インポートコマンド > ビジネス管理変更属性のマッピング
  
ビジネス管理変更属性のマッピング
ほとんどの場合、管理変更をエクスポートするソースシステムとターゲットシステムは同一でなければなりません。ただし、属性がターゲットシステムで使用できない場合や、ターゲットシステムで識別子が異なる場合があります。たとえば、ターゲットシステム上のユーザーの UFID がソースシステムとは異なる場合があります。インポート時のコンフリクトを防止するため、マッピングファイルを作成して import コマンドから参照できます。以降のセクションでは、サンプルマッピング XSL ファイルについて説明します。
ポリシーアクセス制御規則のマッピング
この例では、ポリシーアクセス制御規則が作成されるコンテキストとポリシー規則が適用されるユーザーにマッピングが指定されます。
<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
<xsl:template match="@* | node()" priority="-9">
<xsl:copy><xsl:apply-templates select="@* | node()"/></xsl:copy>
</xsl:template>
<xsl:template match="AccessControlRule">
<newInfo>
<xsl:apply-templates select="objectContainerPath"/>
<xsl:apply-templates select="WTPrincipalReference"/>
</newInfo>
</xsl:template>
<xsl:template match="objectContainerPath">
<objectContainerPath>
<xsl:value-of select='replace(., "testOrg","Demo Organization")'/>
</objectContainerPath>
</xsl:template>
<xsl:template match="ufid">
<ufid>
<xsl:value-of select='replace(., "testuser","demo")'/>
</ufid>
</xsl:template>
</xsl:stylesheet>
参加者のマッピング
この例では、プロフィールが適用される参加者の名前と識別子にマッピングが指定されます。
<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
<xsl:template match="@* | node()" priority="-9">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="ExportedProfileInfo">
<newInfo>
<xsl:apply-templates select="profileMember"/>
</newInfo>
</xsl:template>
<xsl:template match="WTPrincipalReference/ufid">
<ufid>
<xsl:value-of select="replace(., "aa","demo")"/>
</ufid>
</xsl:template>
<xsl:template match="WTPrincipalReference/name">
<name>
<xsl:value-of select='replace(., "aa","demo")'/>
</name>
</xsl:template>
</xsl:stylesheet>
コンテキストのマッピング
この例では、プロフィールが作成されるコンテキストにマッピングが指定されます。
<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
<xsl:template match="@* | node()" priority="-9">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="ExportedProfileInfo">
<newInfo>
<xsl:apply-templates select="objectContainerPath"/>
</newInfo>
</xsl:template>
<xsl:template match="objectContainerPath">
<objectContainerPath>
<xsl:value-of select='replace(., "testOrg","Demo Organization")'/>
</objectContainerPath>
</xsl:template>
</xsl:stylesheet>