|
61 | 61 | ) |
62 | 62 | end |
63 | 63 |
|
| 64 | + link_quotas = proc do |rec| |
| 65 | + ajax_link(fn(rec.quota_cnt), |
| 66 | + {action: :list_ts_quotas, |
| 67 | + username: rec.username, |
| 68 | + update_area: @update_area, |
| 69 | + }, |
| 70 | + title: "Show tablespace quotas of user '#{rec.username}'" |
| 71 | + ) |
| 72 | + end |
| 73 | + |
64 | 74 | render_action_buttons = proc do |rec| |
65 | 75 | retval = |
66 | 76 | "<div style=\"float:left\">#{ |
|
91 | 101 | column_options << {caption: 'Auth. type', data: proc{|rec| rec.authentication_type}, title: 'Indicates the authentication mechanism for the user'} |
92 | 102 | column_options << {caption: 'Cm.', data: proc{|rec| rec.common}, title: 'Indicates whether a given user is common'} if get_db_version >= '12.1' |
93 | 103 | column_options << {caption: 'Orcl. maint.',data: proc{|rec| rec.oracle_maintained}, title: "Denotes whether the user was created, and is maintained, by Oracle-supplied scripts (such as catalog.sql or catproc.sql).\nA user for which this column has the value Y must not be changed in any way except by running an Oracle-supplied script."} if get_db_version >= '12.1' |
94 | | - column_options << {caption: 'Pr. o.', data: proc{|rec| rec.proxy_only_connect}, title: 'Indicates whether a user can connect directly (N) or whether the account can only be proxied (Y) by users who have proxy privileges for this account (that is, by users who have been granted the "connect through" privilege for this account).'} if get_db_version >= '12.1' |
| 104 | + column_options << {caption: 'Pr. o.', data: proc{|rec| rec.proxy_only_connect}, title: "Proxy only connect\nIndicates whether a user can connect directly (N) or whether the account can only be proxied (Y) by users who have proxy privileges for this account (that is, by users who have been granted the \"connect through\" privilege for this account)."} if get_db_version >= '12.1' |
95 | 105 | column_options << {caption: 'Last login', data: proc{|rec| localeDateTime(rec.last_login)},title: 'The time of the last user login.'} if get_db_version >= '12.1' |
96 | 106 | column_options << {caption: 'Inh.', data: proc{|rec| rec.inherited}, title: "Indicates whether the user definition was inherited from another container (YES) or not (NO)"} if get_db_version >= '12.2' |
97 | 107 | column_options << {caption: 'Default collation', data: proc{|rec| rec.default_collation}, title: "Default collation for the user’s schema"} if get_db_version >= '12.2' |
|
102 | 112 | column_options << {caption: 'Object privs', data: link_obj_grants, title: 'Number of object privileges granted to this user', align: :right} |
103 | 113 | column_options << {caption: 'System privs', data: link_privileges, title: 'Number of system privileges granted this user', align: :right} |
104 | 114 | column_options << {caption: 'Granted object privs', data: link_granted_obj_privs, title: 'Number of object privileges granted to others by this user', align: :right} |
105 | | - column_options << {caption: 'DB objects', data: link_objects, title: 'Number of DB objects owned by this user', align: :right} |
| 115 | + column_options << {caption: 'DB obj.', data: link_objects, title: 'Number of DB objects owned by this user', align: :right} |
| 116 | + column_options << {caption: 'TS quot.', data: link_quotas, title: 'Number of tablespace quotas for this user', align: :right} |
106 | 117 | column_options << {caption: 'Action', data: render_action_buttons, title: 'Call action for this user'} |
107 | 118 | %> |
108 | 119 |
|
|
0 commit comments