导出带有安全标签的对象
导出操作的方式与安全标签的相同。将导出所有定义的安全标签 (包括任何空值),即使禁用了安全标签功能也不例外。
要在启用安全标签的情况下导出对象,用户必须获得安全标签的必需授权以及与导出操作相符的访问控制权限。
以下示例说明带有安全标签的导出部件的格式。导入对象时使用的都是相同的 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>