Returns the global permission, or the permission for the specified database. @param db database pattern (can be null) @return permission
(final String db)
| 209 | * @return permission |
| 210 | */ |
| 211 | public synchronized Perm permission(final String db) { |
| 212 | if(db != null) { |
| 213 | final Entry<String, Perm> entry = find(db); |
| 214 | if(entry != null) return entry.getValue(); |
| 215 | } |
| 216 | return permission; |
| 217 | } |
| 218 | |
| 219 | /** |
| 220 | * Returns the first entry for the specified database. |