|
21 | 21 | <%= |
22 | 22 | gen_slickgrid(@audits, column_options, { |
23 | 23 | :caption => 'Active auditing rules from DBA_Stmt_Audit_Opts', |
24 | | - :max_height => 450, |
| 24 | + :max_height => 250, |
25 | 25 | :width => :auto, |
26 | 26 | show_pin_icon: 3 |
27 | 27 | }) |
|
57 | 57 | <%= |
58 | 58 | gen_slickgrid(@obj_audit_opts, column_options, { |
59 | 59 | :caption => 'Active auditing rules from DBA_Obj_Audit_Opts', |
60 | | - :max_height => 450, |
| 60 | + :max_height => 250, |
61 | 61 | :width => :auto, |
62 | 62 | show_pin_icon: 3 |
63 | 63 | }) |
|
105 | 105 | <%= |
106 | 106 | gen_slickgrid(@fga_policies, column_options, { |
107 | 107 | :caption => 'FGA policies from DBA_Audit_Policies', |
108 | | - :max_height => 450, |
| 108 | + :max_height => 250, |
109 | 109 | :width => :auto, |
110 | 110 | show_pin_icon: 3 |
111 | 111 | }) |
112 | 112 | %> |
113 | 113 | </div> |
114 | 114 | <% end %> |
115 | 115 |
|
116 | | - <% if get_db_version >= '12.2' && @audit_unified_enabled_policies.count > 0 %> |
117 | | - <div class="flex-row-element"> |
118 | | - <% |
119 | | - link_policy_count = proc do |rec| |
120 | | - ajax_link(fn(rec.policy_count), { |
121 | | - action: :list_audit_unified_policies, |
122 | | - policy_name: rec.policy_name, |
123 | | - object_type: @object_type, |
124 | | - owner: @owner, |
125 | | - object_name: @object_name, |
126 | | - update_area: @update_area |
127 | | - }, title: "Show the #{fn(rec.policy_count)} policies from Audit_Unified_Policies" ) |
128 | | - end |
129 | | - column_options = |
130 | | - [ |
131 | | - {caption: 'Policy', data: proc{|rec| rec.policy_name }, title: 'Name of the audit policy'}, |
132 | | - {caption: 'Enabled option', data: proc{|rec| rec.enabled_option}, title: "Enabled option of the audit policy. Possible values:\nBY USER: For policies that are enabled on users\nEXCEPT USER: For policies that are enabled on users\nBY GRANTED ROLE: For policies that are enabled on roles\nINVALID: For policies that are not enabled on either users or roles\nNO: Not enabled on any user or role (Records in Audit_Unified_Policies only)"}, |
133 | | - {caption: 'Entity name', data: proc{|rec| rec.entity_name}, title: "Database entity (user name or role name) on which the audit policy is enabled.\nWhen an audit policy is enabled on all database users, ALL USERS is displayed in this column."}, |
134 | | - {caption: 'Entity type', data: proc{|rec| rec.entity_type}, title: "Database entity type. Possible values:\nUSER: Indicates that the policy is enabled on a user or users.\nROLE: Indicates that the policy is enabled on a role or roles."}, |
135 | | - {caption: 'Success', data: proc{|rec| rec.success}, title: 'Indicates whether the audit policy is enabled for auditing successful events (YES) or not (NO)'}, |
136 | | - {caption: 'Failure', data: proc{|rec| rec.failure}, title: 'Indicates whether the audit policy is enabled for auditing unsuccessful events (YES) or not (NO)'}, |
137 | | - {caption: 'Policy count', data: link_policy_count, title: 'Number of unified audit policies in Audit_Unified_Policies', align: :right}, |
138 | | - {caption: 'Comment', data: proc{|rec| rec.comments}, title: 'Comment from Audit_Unified_Policy_Comments'}, |
139 | | - ] |
140 | | - %> |
| 116 | + <% if get_db_version >= '12.2' %> |
| 117 | + <% if @audit_unified_enabled_policies.count > 0 %> |
| 118 | + <div class="flex-row-element"> |
| 119 | + <% |
| 120 | + link_policy_count = proc do |rec| |
| 121 | + ajax_link(fn(rec.policy_count), { |
| 122 | + action: :list_audit_unified_policies, |
| 123 | + policy_name: rec.policy_name, |
| 124 | + object_type: @object_type, |
| 125 | + owner: @owner, |
| 126 | + object_name: @object_name, |
| 127 | + update_area: @update_area |
| 128 | + }, title: "Show the #{fn(rec.policy_count)} policies from Audit_Unified_Policies" ) |
| 129 | + end |
| 130 | + column_options = |
| 131 | + [ |
| 132 | + {caption: 'Policy', data: proc{|rec| rec.policy_name }, title: 'Name of the audit policy'}, |
| 133 | + {caption: 'Enabled option', data: proc{|rec| rec.enabled_option}, title: "Enabled option of the audit policy. Possible values:\nBY USER: For policies that are enabled on users\nEXCEPT USER: For policies that are enabled on users\nBY GRANTED ROLE: For policies that are enabled on roles\nINVALID: For policies that are not enabled on either users or roles\nNO: Not enabled on any user or role (Records in Audit_Unified_Policies only)"}, |
| 134 | + {caption: 'Entity name', data: proc{|rec| rec.entity_name}, title: "Database entity (user name or role name) on which the audit policy is enabled.\nWhen an audit policy is enabled on all database users, ALL USERS is displayed in this column."}, |
| 135 | + {caption: 'Entity type', data: proc{|rec| rec.entity_type}, title: "Database entity type. Possible values:\nUSER: Indicates that the policy is enabled on a user or users.\nROLE: Indicates that the policy is enabled on a role or roles."}, |
| 136 | + {caption: 'Success', data: proc{|rec| rec.success}, title: 'Indicates whether the audit policy is enabled for auditing successful events (YES) or not (NO)'}, |
| 137 | + {caption: 'Failure', data: proc{|rec| rec.failure}, title: 'Indicates whether the audit policy is enabled for auditing unsuccessful events (YES) or not (NO)'}, |
| 138 | + {caption: 'Policy count', data: link_policy_count, title: 'Number of unified audit policies in Audit_Unified_Policies', align: :right}, |
| 139 | + {caption: 'Comment', data: proc{|rec| rec.comments}, title: 'Comment from Audit_Unified_Policy_Comments'}, |
| 140 | + ] |
| 141 | + %> |
141 | 142 |
|
142 | | - <%= |
143 | | - gen_slickgrid(@audit_unified_enabled_policies, column_options, { |
144 | | - :caption => 'Unified audit policies from Audit_Unified_Enabled_Policies', |
145 | | - :max_height => 450, |
146 | | - :width => :auto, |
147 | | - show_pin_icon: 3 |
148 | | - }) |
149 | | - %> |
150 | | - </div> |
| 143 | + <%= |
| 144 | + gen_slickgrid(@audit_unified_enabled_policies, column_options, { |
| 145 | + :caption => 'Unified audit policies from Audit_Unified_Enabled_Policies', |
| 146 | + :max_height => 250, |
| 147 | + :width => :auto, |
| 148 | + show_pin_icon: 3 |
| 149 | + }) |
| 150 | + %> |
| 151 | + </div> |
| 152 | + <% end %> |
| 153 | + |
| 154 | + <% if @audit_unified_contexts.count > 0 %> |
| 155 | + <div class="flex-row-element"> |
| 156 | + <% |
| 157 | + column_options = |
| 158 | + [ |
| 159 | + {caption: 'Namespace ', data: proc{|rec| rec.namespace }, title: 'Application context namespace'}, |
| 160 | + {caption: 'Attribute', data: proc{|rec| rec.attribute}, title: "Application context attribute"}, |
| 161 | + {caption: 'User name', data: proc{|rec| rec.user_name}, title: "Username of database user for whom the application context's attribute is confiured to be captured in the audit trail"}, |
| 162 | + ] |
| 163 | + %> |
| 164 | + |
| 165 | + <%= |
| 166 | + gen_slickgrid(@audit_unified_contexts, column_options, { |
| 167 | + :caption => 'Additional application context attributes from Audit_Unified_Contexts', |
| 168 | + :max_height => 250, |
| 169 | + :width => :auto, |
| 170 | + show_pin_icon: 3 |
| 171 | + }) |
| 172 | + %> |
| 173 | + </div> |
| 174 | + <% end %> |
151 | 175 | <% end %> |
152 | 176 |
|
153 | 177 | </div> |
|
0 commit comments