Step 7. Edit LogicalAttributesSite.xml - Required
Edit the LogicalAttributesSite.xml file to add Property subelements for each security label to the wt.access.SecurityLabeled Class element.
1. If it does not already exist at your site, create a LogicalAttributesSite.xml file in the following location:
<Windchill>/wtSafeArea/siteMod/codebase
where <Windchill> is the installed location of your Windchill solution.
The LogicalAttributesSite.xml file should contain the following:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE LogicalAttributes SYSTEM "/com/ptc/core/meta/common/impl/
LogicalAttributes.dtd" >
<!-- Site specific logical attributes. -->
<LogicalAttributes>
</LogicalAttributes>
If a LogicalAttributesSite.xml file exists in the <Windchill>/codebase directory, copy the existing file to the following locations:
<Windchill>/wtSafeArea/ptcOrig/codebase
and
<Windchill>/wtSafeArea/siteMod/codebase
2. Open the <Windchill>/wtSafeArea/siteMod/codebase/LogicalAttributesSite.xml file in a text editor.
3. Add the Class element within the LogicalAttributes element.
<Class name="wt.access.SecurityLabeled">
</Class>
4. Within the Class element,
add a Property subelement for ALL_SECURITY_LABELS, ALL_STANDARD_SECURITY_LABELS, ALL_CUSTOM_SECURITY_LABELS, and 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 more information about the scope of uniqueness of an internal name, see
Creating a New Attribute.
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>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. Save and close.