Configuring the pronunciation feature
Edit settings in the profiles-policy.xml file to configure the pronunciation feature.
Before you begin
About this task
Procedure
The following steps provide information about the properties
that you can set for the pronunciation feature, and the access levels
and scopes that you can configure.
- Start the wsadmin client from the following
directory of the system on which you installed the Deployment Manager:
where app_server_root is the WebSphere® Application Server installation directory and dm_profile_root is the Deployment Manager profile directory, typically dmgr01.app_server_root\profiles\dm_profile_root\bin
You must start the client from this directory or subsequent commands that you enter do not execute correctly.
- Start the Profiles Jython script interpreter.
-
Use the following command to check out the profiles-policy.xml
file:
where:ProfilesConfigService.checkOutPolicyConfig("<working_directory>", "cell_name")
- working_directory is the temporary working directory to which the configuration XML and XSD files will be copied. The files are kept in this working directory while you make changes to them.
- cell_name is the name of the IBM® WebSphere® Application Server cell hosting the Profiles application. This argument is required.
ProfilesConfigService.checkOutPolicyConfig("/wsadminoutput", "jdoe30Node02Cell")
- Open the profiles-policy.xml file using a text editor, from the temporary directory to which you checked it out.
- Edit the following properties for the pronunciation feature
as needed.
- profile.pronunciation
Enables or disables the profile pronunciation feature.
This property takes a string value. Possible values include:- true. Enables the pronunciation feature for users with the specified profile type. The user interface displays an icon for the user's pronunciation file and provides options for editing the file.
- false. Disables the pronunciation feature for users with the specified profile type. The feature does not display in the user interface.
- profile.pronunciation.update
Controls user access to update the profile pronunciation file.
Access levels for this property can be defined using one of the following scopes:- none. No one can update the pronunciation file of users with the specified profile type.
- self. Users with the specified profile type can update their own pronunciation file. Administrators can also update the pronunciation file of users with the specified profile type.
For example:
This code sample enables the pronunciation feature for users with the default profile type, but restricts the ability to update pronunciation files to profile owners and administrators.<feature name="profile.pronunciation"> <profileType type="default" enabled="true"> <acl name="profile.pronunciation.update" scope="self" /> </profileType> </feature>
- Save your changes and check the profiles-policy.xml file
back in using the following command:
ProfilesConfigService.checkInPolicyConfig()
- To exit the wsadmin client, type exit at the prompt.
- Stop and restart the Profiles server.