단계 4. LogicalAttributesSite.xml 작성 - 필수
LogicalAttributesSite.xml 파일을 작성하여 각 보안 레이블의 Property 하위요소를 wt.access.SecurityLabeled 클래스 요소에 추가합니다.
◦ 파일을 작성하고 다음 위치에 저장합니다.
<customizationRootDirectory>/configurations/resources
여기서 <customizationRootDirectory>는 사용자 정의 및 구성에 대한 루트 폴더입니다.
◦ 사용자 정의 LogicalAttributesSite.xml 파일을 사용하려면 파일을 생성하고 다음 위치에 저장합니다.
<customizationRootDirectory>/configurations/resources
|
|
resources 아래에 사용자 정의 폴더를 생성하여 사용자 정의 LogicalAttributesSite.xml 파일을 배치하는 것이 좋습니다.
|
또한 <customizationRootDirectory>/configurations/xconf/custom.site.xconf 파일에서 다음 등록 정보를 설정하여 아래 예와 같이 사용자 정의 파일 위치를 지정합니다.
<AddToProperty name="com.ptc.core.meta.common.impl.LogicalIdentifierFactory.translatorSelectors” value=“(10)xml-override|/custom/<custom file name>” targetFile="codebase/wt.properties"/>
LogicalAttributesSite.xml 파일은 다음 요소를 포함해야 합니다.
<?xml version="1.0" standalone="no"?>
<!DOCTYPE LogicalAttributes SYSTEM "/com/ptc/core/meta/common/impl/
LogicalAttributes.dtd" >
<!-- Site specific logical attributes. -->
<LogicalAttributes>
</LogicalAttributes>
2. LogicalAttributes 요소 내에 Class 요소를 추가합니다.
<Class name="wt.access.SecurityLabeled">
</Class>
3. Class 요소 내에서 다음과 같은 형식으로 각 보안 레이블에 대한 Property 하위 요소를 추가합니다.
<Property>
<LogicalForm><SECURITY_LABEL></LogicalForm>
<ExternalForm>SCA|<SECURITY_LABEL></ExternalForm>
</Property>
SCA|<SECURITY_LABEL>은 보안 레이블 구성 파일의 보안 레이블에 대한
SecurityLabelResourceKey 요소 값에서 틸데(~) 뒤에 오는 세그먼트와 일치합니다. 이 값은 영숫자 문자와 밑줄 문자만 포함할 수 있습니다.
LogicalForm의
<SECURITY_LABEL> 값이
ExternalForm의
<SECURITY_LABEL> 값과 일치할 필요는 없지만 이 안내서에서는 해당 규칙을 사용합니다. 내부 이름의 고유성 범위에 대한 자세한 내용은
새 속성 작성을 참조하십시오.
예를 들어, 예제 구성의 각 보안 레이블에 대해 필요한 행을 추가한 후의 요소를 표시하면 다음과 같습니다.
<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. 저장하고 닫습니다.