Return the roles associated with the given username. @param username Username for which roles should be retrieved @return an array list of the role names
(String username)
| 469 | * @return an array list of the role names |
| 470 | */ |
| 471 | protected ArrayList<String> getRoles(String username) { |
| 472 | |
| 473 | // Ensure that we have an open database connection |
| 474 | Connection dbConnection = open(); |
| 475 | if (dbConnection == null) { |
| 476 | return null; |
| 477 | } |
| 478 | |
| 479 | try { |
| 480 | return getRoles(dbConnection, username); |
| 481 | } finally { |
| 482 | close(dbConnection); |
| 483 | } |
| 484 | } |
| 485 | |
| 486 | |
| 487 | /** |
no test coverage detected