特定管理 > 確保資料安全性 > 安全性標籤與協定 > 配置安全性標籤 > 安全性標籤組態步驟 > 步驟 3.將組態新增至安全性標籤組態檔案 - 必需
步驟 3.將組態新增至安全性標籤組態檔案 - 必需
下列位置備有現成的安全性標籤組態檔案:
<Windchill>/conf/securityLabelsConfiguration.xml
其中 <Windchill> 是您安裝 Windchill 解決方案的位置。
使用 OOTB 組態檔案時,請將檔案複製到下列位置並進行修改:
<customizationRootDirectory>/configurations/conf
其中 <customizationRootDirectory> 是您的自訂與組態的根資料夾。
如果您計劃使用自訂組態檔案,請建立檔案並將其儲存在此位置:
<customizationRootDirectory>/configurations/conf
* 
建議在 conf 下建立自訂資料夾,以放置自訂組態檔案。
此外,設定 <customizationRootDirectory>/configurations/xconf/custom.site.xconf 檔案中的下列內容以指定自訂檔案位置,如以下範例所示:
<Property name="wt.access.configuration.securityLabelsConfigurationFile" value=“$(wt.home)/conf/custom/<custom file name>” targetFile="codebase/wt.properties"/>
* 
名為 securityLabelsConfiguration_sample.xml 的樣本組態檔案位於與現成組態檔案相同的目錄中。此樣本組態檔案包含有關組態檔案元件的樣本資料與詳細註解。雖然樣本組態檔案包含與本指南中使用的範例組態類似的樣本資料,但若要成功配置安全性標籤,必須使用您系統的實際值。
securityLabelsConfiguration.xml 檔案的內容包含名為 SecurityLabelsConfiguration 的單一、複雜 XML 元素。
當您最初開啟 securityLabelsConfiguration.xml 檔案時,將會看到下列內容:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE SecurityLabelsConfiguration
SYSTEM "securityLabelsConfiguration.dtd">
<SecurityLabelsConfiguration enabled="false">
</SecurityLabelsConfiguration>
欲啟用安全性標籤,請在組態檔案中執行下列變更:
如果您要啟用協定,請新增 AgreementConfiguration 元素及其子元素。如需詳細資訊,請參閱 AgreementConfiguration 元素
針對每個標準安全性標籤,新增 SecurityLabel 元素及其子元素。如需詳細資訊,請參閱 SecurityLabel 元素
SecurityLabelsConfiguration 元素上 enabled 參數的值從 false 變更為 true
<SecurityLabelsConfiguration enabled="true">
當您進行所有變更之後,請儲存並關閉安全性標籤組態檔案。
這是否有幫助?