步驟 4.建立 LogicalAttributesSite.xml - 必需
建立 LogicalAttributesSite.xml 檔案以將每個安全性標籤的 Property 子元素新增到 wt.access.SecurityLabeled 類別元素中。
建立檔案並將其儲存在下列位置:
<customizationRootDirectory>/configurations/resources
其中 <customizationRootDirectory> 是您的自訂與組態的根資料夾。
如果您計劃使用自訂 LogicalAttributesSite.xml 檔案,請建立檔案並將其儲存在此位置:
<customizationRootDirectory>/configurations/resources
* 
建議在 resources 下方建立自訂資料夾,以放置您的自訂 LogicalAttributesSite.xml 檔案。
此外,設定 <customizationRootDirectory>/configurations/xconf/custom.site.xconf 檔案中的下列內容以指定自訂檔案位置,如以下範例所示:
<AddToProperty name="com.ptc.core.meta.common.impl.LogicalIdentifierFactory.translatorSelectors” value=“(10)xml-override|/custom/<custom file name>” targetFile="codebase/wt.properties"/>
LogicalAttributesSite.xml 檔案應包含下列元素:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE LogicalAttributes SYSTEM "/com/ptc/core/meta/common/impl/
LogicalAttributes.dtd" >
<!-- Site specific logical attributes. -->
<LogicalAttributes>
</LogicalAttributes>
2. Class 元素新增到 LogicalAttributes 元素中。
<Class name="wt.access.SecurityLabeled">
</Class>
3. Class 元素內,以下列格式為每個安全性標籤新增 Property 子元素:
<Property>
<LogicalForm><SECURITY_LABEL></LogicalForm>
<ExternalForm>SCA|<SECURITY_LABEL></ExternalForm>
</Property>
其中,SCA|<SECURITY_LABEL> 與安全性標籤組態檔案中安全性標籤的 SecurityLabelResourceKey 元素值中波浪號 (~) 後的區段相符。此值只可以包含字母數字字元與底線字元。雖然 LogicalForm 中的 <SECURITY_LABEL> 值不需要與 ExternalForm 中的 <SECURITY_LABEL> 值相符,但這是本指南的慣例。
例如,針對範例組態新增每個安全性標籤所需要的行之後,元素會顯示為如下:
<Class name="wt.access.SecurityLabeled">
<Property>
<LogicalForm>CORPORATE_PROPRIETARY</LogicalForm>
<ExternalForm>SCA|CORPORATE_PROPRIETARY</ExternalForm>
</Property>
<Property>
<LogicalForm>EXPORT_CONTROL</LogicalForm>
<ExternalForm>SCA|EXPORT_CONTROL</ExternalForm>
</Property>
<Property>
<LogicalForm>LEGAL_INFORMATION</LogicalForm>
<ExternalForm>SCA|LEGAL_INFORMATION</ExternalForm>
</Property>
</Class>
4. 儲存並關閉。
這是否有幫助?