Returns a table with all users, or users from a specific database. The list will only contain the current user if no admin permissions are available. @param db database (can be null) @param ctx database context @return user information
(final String db, final Context ctx)
| 178 | * @return user information |
| 179 | */ |
| 180 | public synchronized Table info(final String db, final Context ctx) { |
| 181 | final Table table = new Table(); |
| 182 | table.description = Text.USERS_X; |
| 183 | |
| 184 | for(final String user : S_USERINFO) table.header.add(user); |
| 185 | for(final User user : users(db, ctx)) { |
| 186 | table.contents.add(new TokenList().add(user.name()).add(user.permission(db).toString())); |
| 187 | } |
| 188 | return table.sort().toTop(token(ADMIN)); |
| 189 | } |
| 190 | |
| 191 | /** |
| 192 | * Returns all users, or users that have permissions for a specific database. |
nothing calls this directly
no test coverage detected