匯出含有安全性標籤的物件
就安全性標籤而言,匯出動作的行為相同。將會匯出全部定義的安全性標籤,包括任何空值,即使安全性標籤功能禁用亦是如此。
若要在啟用安全性標籤時匯出物件,使用者必須同時具有安全性標籤的所需權限,以及適當的匯出存取控制權限。
以下範例顯示具有安全性標籤之匯出零件的格式。匯入物件的 XML 格式與此相同。
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE WTPart SYSTEM "standardX20.dtd">
<WTPart>
<ObjectID></ObjectID>
<objectContainerPath>/wt.inf.container.OrgContainer=PTC/wt.pdmlink. PDMLinkProduct=Load File Development</objectContainerPath>
<number>0000000021</number>
<name>Security Labeled Part</name>
<defaultUnit>ea</defaultUnit>
<endItem>false</endItem>
<defaultTraceCode>0</defaultTraceCode>
<genericType>standard</genericType>
<partType>separable</partType>
<partSource>make</partSource>
<domainName>/Default</domainName>
<folderPath>/Default/General</folderPath>
<view>Design</view>
<versionInfo>
<versionId>A</versionId>
<iterationId>1</iterationId>
<versionLevel>1</versionLevel>
<series>wt.series.HarvardSeries</series>
</versionInfo>
<lifecycleInfo>
<lifecycleTemplateName>Basic</lifecycleTemplateName>
<lifecycleState>INWORK</lifecycleState>
</lifecycleInfo>
<SecurityLabels>
<SecurityLabel name="SECRECY_LABEL" value="Secret,NotSecret"></SecurityLabel>
<SecurityLabel name="CORPORATE_PROPRIETARY" value="CEA"></SecurityLabel>
<SecurityLabel name="LEGAL_INFORMATION" value="NULL"></SecurityLabel>
<SecurityLabel name="EXPORT_CONTROL" value="LNS"></SecurityLabel>
<SecurityLabel name="THIRD_PARTY_PROPRIETARY" value="CompanyA"></SecurityLabel>
</SecurityLabels>
</WTPart>