int allowed = rs.getInt(1);
int denied = rs.getInt(2);
return new Permissions(Permission.fromBitCode(allowed), Permission.fromBitCode(denied));
}
} catch (SQLException ex) {
throw new AccessLookupException(ex);
} finally {
KongaDbUtils.close(rs);
KongaDbUtils.close(stmt);
}
return new Permissions();