Load policy display names and descriptions
To insert or update display names and descriptions for the various policy related elements, run the acpnlsload script. This script loads the following elements: <Action_nls>, <Attribute_nls>, <ActionGroup_nls>, <ResourceCategory_nls>, <ResourceGroup_nls>, <Relation_nls>, <Policy_nls>, <PolicyGroup_nls>
Task info
Note:
- To load the access groups and access control policies, you need to run the following related utilities in this sequence:
- acugload (loads the user access group definitions)
- acpload (loads the main access control policy)
- acpnlsload (loads the display names and descriptions)
- If we create customized XML files, you need to copy them into the following directory to have them loaded into the databases.
- (Linux) utilities_root /xml/policies/xml
(Developer) WCDE_installdir \xml\policies\xml
- When creating a custom policy, do not alter the defaultAccessControlPolicies_locale.xml file. Use this file as a reference to see the structure when creating a custom policy.
Procedure
- Ensure that you have loaded the user access group definitions.
- Ensure that you have loaded the main access control policy.
- Copy the customized translated policy files to the following directory:
- (Linux) utilities_root /xml/policies/xml
(Developer) WCDE_installdir \xml\policies\xml
The customized XML files must conform to the accesscontrolpoliciesnls.dtd file in the following directory:
- (Linux) utilities_root /xml/policies/dtd
(Developer) WCDE_installdir \xml\policies\dtd
- To run the utility: We must login as a user which has the following permissions:
- Read/write/execute authority to these directories, subdirectories, and files.
- (Linux) utilities_root/xml/policies and utilities_root/logs
(Developer) WCDE_installdir\xml\policies and WCDE_installdir\logs
- Read/execute authority to the following directory and its files.
- (Linux) utilities_root /bin
(Developer) WCDE_installdir \bin
If the user does not have the required authority, you need to grant this authority using the chmod command.
- From the (Linux) utilities_root/bin or
(Developer) WCDE_installdir\bin directory, type the following:
- (Linux) ./acpnlsload.sh nls_policies_xml_file
(Developer) .\acpnlsload.sh nls_policies_xml_file
where:
- nls_policies_xml_file
- Required: The input policy XML file for our national language that specifies what policy data to load into the database.
For example:
- (Linux) ./acpnlsload.sh opt/WebSphere/CommerceServer90/xml/policies/xml/defaultaccesscontrolpolicies_en_US.xml
- Check for errors in the log files. Note that errors might not appear on the command line.
- Check the wc-acTransform.log and wc-acLoad.log files in the following directory:
- (Linux) utilities_root/logs
(Developer) WCDE_installdir\logs
- Any error files generated in the (Linux) utilities_root/xml/policies/xml or
(Developer) WCDE_installdir\xml\policies\xml directory.