
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (1, 'application_database_initialization_flag', 'database_successfully_initialized', 'java.lang.String', 'Indicates that the DB has been initialized');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (2, 'application_url', '<%= node['gazelle_platform_configuration']['protocol'] %>://<%= node['gazelle_evs_client']['fdqn'] %>/<%= node['gazelle_evs_client']['apache']['proxy']['path'] %>', 'java.lang.String', 'URL to reach the tool');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (3, 'cas_enabled', '<%= node['gazelle_evs_client']['cas']['enabled'] %>', 'java.lang.Boolean', 'Indicates authentication mechanism to use');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (4, 'ip_login', '<%= !node['gazelle_evs_client']['cas']['enabled'] %>', 'java.lang.Boolean', 'Indicates authentication mechanism to use');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (5, 'ip_login_admin', '.*', 'java.lang.String', 'Pattern to grant users as admin based on their IP address');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (6, 'cas_url', '<%= node['gazelle_evs_client']['cas']['url'] %>', 'java.lang.String', 'URL of the CAS service');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (7, 'time_zone', 'Europe/Paris', 'java.lang.String', 'Time zone to display time to users');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (8, 'atna_repository', '<%= node['gazelle_evs_client']['data_folder'] %>/validatedObjects/ATNA', 'java.lang.String', 'Where to store ATNA messages');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (9, 'cda_repository', '<%= node['gazelle_evs_client']['data_folder'] %>/validatedObjects/CDA', 'java.lang.String', 'Where to store CDA documents');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (10, 'dicom_repository', '<%= node['gazelle_evs_client']['data_folder'] %>/validatedObjects/DICOM', 'java.lang.String', 'Where to store DICOM files');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (11, 'dicom_scp_screener_xsl', 'dicom/TestDicomResults.xsl', 'java.lang.String', 'XSL used to display Dicom SCP Screener results');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (12, 'display_SCHEMATRON_menu', 'false', 'java.lang.String', 'Indicates if we need a link to the list of schematrons for download');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (13, 'dsub_repository', '<%= node['gazelle_evs_client']['data_folder'] %>/validatedObjects/DSUB', 'java.lang.String', 'Where to store DSUB files');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (14, 'epsos_repository_codes', '<%= node['gazelle_evs_client']['data_folder'] %>/bin/EpsosRepository', 'java.lang.String', 'path to epsos codes for epsos-cda-display-tool');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (15, 'gazelle_hl7v2_validator_url', 'http://gazelle.ihe.net/GazelleHL7Validator', 'java.lang.String', 'Path to Gazelle HL7 Validator');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (16, 'hl7v3_repository', '<%= node['gazelle_evs_client']['data_folder'] %>/validatedObjects/HL7v3', 'java.lang.String', 'Where to store HL7v3 messages');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (17, 'hpd_repository', '<%= node['gazelle_evs_client']['data_folder'] %>/validatedObjects/HPD', 'java.lang.String', 'Where to store HPD messages');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (18, 'include_country_statistics', 'true', 'java.lang.Boolean', 'Authorize or not the application to query geoip to retrieve the countries the users are from');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (19, 'monitor_email', 'test@test.com', 'java.lang.String', 'Contact of the person who monitors the application');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (20, 'number_of_segments_to_display', '40', 'java.lang.Integer', 'Number of segment to display when displaying HL7v2 messages');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (21, 'object_for_validator_detector_repository', '<%= node['gazelle_evs_client']['data_folder'] %>/validatedObjects/validatorDetector', 'java.lang.String', 'path to the repository where object for validator_detector are stored');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (22, 'pdf_repository', '<%= node['gazelle_evs_client']['data_folder'] %>/validatedObjects/PDF', 'java.lang.String', 'Where to store PDF files');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (23, 'root_oid', '1.2.3', 'java.lang.String', 'Root of the OID used to uniquely identify validation requests');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (24, 'saml_repository', '<%= node['gazelle_evs_client']['data_folder'] %>/validatedObjects/SAML', 'java.lang.String', 'Where to store SAML assertions');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (25, 'svs_repository', '<%= node['gazelle_evs_client']['data_folder'] %>/validatedObjects/SVS', 'java.lang.String', 'Where to store SVS messages');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (26, 'tls_repository', '<%= node['gazelle_evs_client']['data_folder'] %>/validatedObjects/TLS', 'java.lang.String', 'Where to store certificates');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (27, 'xds_repository', '<%= node['gazelle_evs_client']['data_folder'] %>/validatedObjects/XDS', 'java.lang.String', 'Where to store XDS messages');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (28, 'xdw_repository', '<%= node['gazelle_evs_client']['data_folder'] %>/validatedObjects/XDW', 'java.lang.String', 'Where to store XDW messages');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (29, 'application_admin_email', 'contact@evsclient.net', 'java.lang.String', 'Contact of the person responsible for the application');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (30, 'application_admin_name', 'contact', 'java.lang.String', 'Person responsible for the application');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (31, 'application_issue_tracker_url', 'http://gazelle.ihe.net/browse/EVSCLT', 'java.lang.String', 'URL of the project in the issue tracking system');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (32, 'templates_scanned', 'true', 'java.lang.Boolean', 'Scan templates when CDA file is validated');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (33, 'x_validation_enabled', 'true', 'java.lang.Boolean', 'Indicates if the X validation module is enabled');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (34, 'assertion_manager_url', 'https://gazelle.ihe.net/AssertionManagerGui', 'java.lang.String', 'URL to access Assertion Manager');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (35, 'xvalidator_directory', '<%= node['gazelle_evs_client']['data_folder'] %>/xvalidation', 'java.lang.String', 'Where to store X validation files');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (36, 'xvalidation_root_oid', '1.1.1.1.1.', 'java.lang.String', 'OID for X validation reports');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (37, 'svs_repository_url', 'https://gazelle.ihe.net', 'java.lang.String', 'Default SVS repository for X validation');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (38, 'xvalidator_xsl_url', 'https://gazelle.ihe.net/xsl/EVSClient/xval/gazelleXValidator.xsl', 'java.lang.String', 'Stylesheet for displaying validators');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (39, 'x_validation_validator', 'false', 'java.lang.Boolean', 'Whether to enable or not the validator feature of X Validation module');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (40, 'x_validation_editor', 'false', 'java.lang.Boolean', 'Whether to enable or not the editor feature of X Validation module');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (41, 'path_to_dcmDump', '/usr/bin/dcmdump', 'java.lang.Boolean', 'Path to DcmDump executable on the system hosting the application');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (42, 'NUMBER_OF_ITEMS_PER_PAGE', '20', 'java.lang.String', 'Number of lines in tables');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (43, 'application_gazelle_documentation_url', 'https://gazelle.ihe.net/content/user-manual', 'java.lang.String', 'EVS Client documentation URL');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (44, 'application_admin_title', 'IHE Europe Technical Manager', 'java.lang.String', 'Admin Title');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (45, 'application_name', 'External Validation Service Front-end', 'java.lang.String', 'Application Name');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (46, 'application_gazelle_release_notes_url', 'https://gazelle.ihe.net/content/evs-client-front-end-release-notes	', 'java.lang.String', 'Application Release Notes');
INSERT INTO cmn_application_preference (id, class_name, description, preference_name, preference_value) VALUES (47, 'java.lang.String', 'Sites can use this to avoid clickjacking attacks, by ensuring that their content is not embedded into other sites', 'X-Frame-Options', 'SAMEORIGIN');
INSERT INTO cmn_application_preference (id, class_name, description, preference_name, preference_value) VALUES (48, 'java.lang.String', 'Application should return caching directives instructing browsers not to store local copies of any sensitive data.', 'Cache-Control', 'private, no-cache, no-store, must-revalidate, max-age=0');
INSERT INTO cmn_application_preference (id, class_name, description, preference_name, preference_value) VALUES (49, 'java.lang.Boolean', 'Enable or Disable http security headers', 'security-policies', 'true');
INSERT INTO cmn_application_preference (id, class_name, description, preference_name, preference_value) VALUES (50, 'java.lang.String', 'Chrome flag, uses X-Content-Security-Policy values', 'X-WebKit-CSP', 'Use X-Content-Security-Policy values');
INSERT INTO cmn_application_preference (id, class_name, description, preference_name, preference_value) VALUES (51, 'java.lang.String', 'Chrome flag, uses X-Content-Security-Policy-Report-Only values', 'X-WebKit-CSP-Report-Only', 'Use X-Content-Security-Policy-Report-Only values');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (52, 'x_validation_enabled', 'false', 'java.lang.Boolean', 'enabled Cross validator');
INSERT INTO cmn_application_preference (id, preference_name, preference_value, class_name, description) VALUES (53, 'cda_validator_app_url', 'https://gazelle.ihe.net/CDAGenerator', 'java.lang.String', 'URL of the CDA ObjectsChecker application');
INSERT INTO cmn_application_preference (id, class_name,  description, preference_name, preference_value) VALUES (54, 'java.lang.String', 'how to report errors on value', 'hl7v2_value_fault_level', 'WARNING');
INSERT INTO cmn_application_preference (id, class_name,  description, preference_name, preference_value) VALUES (55, 'java.lang.String', 'How to report errors on datatypes', 'hl7v2_datatype_fault_level', 'ERROR');
INSERT INTO cmn_application_preference (id, class_name,  description, preference_name, preference_value) VALUES (56, 'java.lang.String', 'how to report errors on structure', 'hl7v2_structure_fault_level', 'ERROR');
INSERT INTO cmn_application_preference (id, class_name,  description, preference_name, preference_value) VALUES (57, 'java.lang.String', 'how to report errors on length', 'hl7v2_length_fault_level', 'WARNING');
INSERT INTO cmn_application_preference (id, class_name, description, preference_name, preference_value) VALUES (58, 'java.lang.String', 'how to report errors on length', 'hl7v2_length_fault_level', 'WARNING');
INSERT INTO cmn_application_preference (id, class_name, description, preference_name, preference_value) VALUES (59, 'java.lang.String', 'how to report errors on value', 'hl7v2_value_fault_level', 'WARNING');
INSERT INTO cmn_application_preference (id, class_name, description, preference_name, preference_value) VALUES (60, 'java.lang.String', 'how to report errors on structure', 'hl7v2_structure_fault_level', 'ERROR');
INSERT INTO cmn_application_preference (id, class_name, description, preference_name, preference_value) VALUES (61, 'java.lang.String', 'How to report errors on datatypes', 'hl7v2_datatype_fault_level', 'ERROR');

SELECT pg_catalog.setval('cmn_application_preference_id_seq', 58, true);
