Regenerating the data and security dictionaries
If you change the metadata, for example by extending base entities, it is important that you regenerate the Data Dictionary and Security Dictionary to reflect those changes. In this way, other people who use the dictionaries can see these changes.
| Method | Use to generate | More information |
|---|---|---|
|
PolicyCenter |
Security Dictionary | Generating the security dictionary from PolicyCenter |
| Command prompt gwb genDataDictionary | Security Dictionary Data Dictionary |
Generating the data and security dictionaries in HTML format |
See also
- To understand the Data Dictionary and the information it includes, see Working with the Data Dictionary.
- To understand the Security Dictionary and the information it includes, see Security Dictionary.
Generating the data and security dictionaries in HTML format
About this task
To generate the PolicyCenter Data Dictionary and PolicyCenter Security Dictionary in HTML format, run the following command from the PolicyCenter directory:
gwb genDataDictionaryThis command generates HTML files for the dictionaries in the following locations:
PolicyCenter/build/dictionary/data
PolicyCenter/build/dictionary/security
To view a dictionary, open its index.html file from the listed locations.
Generating the data and security dictionaries in XML format
About this task
You can generate the Data Dictionary and Security Dictionary in XML format, with associated XSD files. Use the generated XML and XSD files to import the Data Dictionary and Security Dictionary into third-party database design tools.
To generate the Data Dictionary and Security Dictionary in XML format, run the following command from the PolicyCenter directory:
gwb genDataDictionary -DoutputFormat=xmlThis command generates the following XML and XSD files for the dictionaries:
PolicyCenter/build/dictionary/data/entityModel.xml
PolicyCenter/build/dictionary/data/entityModel.xsd
PolicyCenter/build/dictionary/security/securityDictionary.xml
PolicyCenter/build/dictionary/security/securityDictionary.xsd
The parameter that specifies the output format has two allowed values.
-DoutputFormat={html|xml}If you specify -DoutputFormat=html or you omit the -DoutputFormat parameter, the genDataDictionary
command generates HTML versions of the Data Dictionary and the Security Dictionary.
Generating the security dictionary from PolicyCenter
If you add or modify a user role or role permission, you need to regenerate the Security Dictionary to ensure that it reflects the changes that you made. You can regenerate the Security Dictionary either through a command prompt tool or from within PolicyCenter itself.
To generate the Security Dictionary from PolicyCenter, you must have administrative privileges and be able to access the PolicyCenter Administration tab. On the Administration tab, navigate to the Utilities Export Data screen. From here, you can download the current security information in HTML and XML format.
Generating the dictionaries as you generate a .war or .ear file
About this task
You can generate the Data Dictionary and the Security Dictionary in HTML format as you generate the Guidewire application .war (.ear) file. To do so, use one of the build commands. For example:
gwb warTomcatDbcp -DincludeDictionary=trueWhat to do next
See also
Aspects of regenerating the Security Dictionary
Guidewire PolicyCenter stores the role information used by the Security Dictionary in the base configuration in the following file:
PolicyCenter/modules/configuration/config/import/gen/roleprivileges.csvPolicyCenter does not write this file information to the database.
If you make changes to roles using the PolicyCenter interface, PolicyCenter does write these role changes to the database.
PolicyCenter does not base the Security Dictionary on the actual roles that you have in your database. Instead, PolicyCenter bases the Security Dictionary on the roleprivileges.csv file.
