特定管理 > 確保資料安全性 > 安全性標籤與協定 > 配置安全性標籤 > 安全性標籤組態步驟 > 步驟 7. 編輯 LogicalAttributesSite.xml - 必需
  
步驟 7. 編輯 LogicalAttributesSite.xml - 必需
編輯 LogicalAttributesSite.xml 檔案以將每個安全性標籤的 Property 子元素新增到 wt.access.SecurityLabeled Class 元素中。
1. 如果您的網站中目前不存在 LogicalAttributesSite.xml 檔案,請在下列位置進行建立:
<Windchill>/wtSafeArea/siteMod/codebase
其中 <Windchill> 是您安裝 Windchill 解決方案的位置。
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>
如果 LogicalAttributesSite.xml 檔案存在於 <Windchill>/codebase 目錄中,請將現有檔案複製到下列位置:
<Windchill>/wtSafeArea/ptcOrig/codebase
<Windchill>/wtSafeArea/siteMod/codebase
2. 在文字編輯器中開啟 <Windchill>/wtSafeArea/siteMod/codebase/LogicalAttributesSite.xml 檔案。
3. Class 元素新增到 LogicalAttributes 元素中。
<Class name="wt.access.SecurityLabeled">
</Class>
4. Class 元素中,
為 ALL_SECURITY_LABELS、ALL_STANDARD_SECURITY_LABELS、ALL_CUSTOM_SECURITY_LABELS 以及下列格式的每個安全性標籤新增 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>ALL_SECURITY_LABELS</LogicalForm>
<ExternalForm>SCA|ALL_SECURITY_LABELS</ExternalForm>
</Property>
<Property>
<LogicalForm>ALL_STANDARD_SECURITY_LABELS</LogicalForm>
<ExternalForm>SCA|ALL_STANDARD_SECURITY_LABELS</ExternalForm>
</Property>
<Property>
<LogicalForm>ALL_CUSTOM_SECURITY_LABELS</LogicalForm>
<ExternalForm>SCA|ALL_CUSTOM_SECURITY_LABELS</ExternalForm>
</Property>
<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>
<Property>
<LogicalForm>THIRD_PARTY_PROPRIETARY</LogicalForm>
<ExternalForm>SCA|THIRD_PARTY_PROPRIETARY</ExternalForm>
</Property>
</Class>
5. 儲存並關閉。