Step 4. Create LogicalAttributesSite.xml - Required
Create the LogicalAttributesSite.xml file to add Property subelements for each security label to the wt.access.SecurityLabeled class element.
Create the file and save it in the following location:
<customizationRootDirectory>/configurations/resources
where<customizationRootDirectory> isthe root folder for your customizations and configurations.
If you plan to use a custom LogicalAttributesSite.xml file, create the file and save it in this location:
<customizationRootDirectory>/configurations/resources
* 
It is recommended to create a custom folder under resources to place your custom LogicalAttributesSite.xml file.
Also, set the following property in the <customizationRootDirectory>/configurations/xconf/custom.site.xconf file to specify the custom file location as shown in the example below:
<AddToProperty name="com.ptc.core.meta.common.impl.LogicalIdentifierFactory.translatorSelectors” value=“(10)xml-override|/custom/<custom file name>” targetFile="codebase/wt.properties"/>
The LogicalAttributesSite.xml file should contain the following elements:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE LogicalAttributes SYSTEM "/com/ptc/core/meta/common/impl/
LogicalAttributes.dtd" >
<!-- Site specific logical attributes. -->
<LogicalAttributes>
</LogicalAttributes>
2. Add the Class element within the LogicalAttributes element.
<Class name="wt.access.SecurityLabeled">
</Class>
3. Within the Class element, add a Property subelement for each security label in the following format:
<Property>
<LogicalForm><SECURITY_LABEL></LogicalForm>
<ExternalForm>SCA|<SECURITY_LABEL></ExternalForm>
</Property>
where SCA|<SECURITY_LABEL> matches the segment after the tilde (~) in the SecurityLabelResourceKey element value for the security label in the security labels configuration file. This value can only contain alphanumeric characters and the underscore character. While there is no requirement for the <SECURITY_LABEL> value in the LogicalForm to match the <SECURITY_LABEL> value in the ExternalForm, that is the convention used in this guide.
For example, after adding the lines necessary for each security label for the example configuration, the element appears as follows:
<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. Save and close.
Was this helpful?