123124125126127128129130131132
roles.add(readRole(rs)); } } catch (Exception ex) { throw new AuthorizationException(ex.getMessage(), ex); } return roles; }
162163164165166167168169170171
195196197198199200201202203204205
(role.isSuperUser() ? "true" : "false") + ")"; conn.execute(sql); } catch (Exception ex) { throw new AuthorizationException(ex.getMessage(), ex); } finally { if (conn != null) {
240241242243244245246247248249250
"WHERE roleid='" + DataAgent.sqlFormatTextValue(roleId) + "'"; conn.execute(sql); } catch (Exception ex) { throw new AuthorizationException(ex.getMessage(), ex); } finally { if (conn != null) {
279280281282283284285286287288289
"WHERE roleid = '" + DataAgent.sqlFormatTextValue(role.getId()) + "'"; conn.execute(sql); } catch (Exception ex) { throw new AuthorizationException(ex.getMessage(), ex); } finally { if (conn != null) {
325326327328329330331332333334
activities.add(readActivity(rs)); } } catch (Exception ex) { throw new AuthorizationException(ex.getMessage(), ex); } return activities; }
363364365366367368369370371372
405406407408409410411412413414
permissions.add(new Permission(readActivity(rs), true)); } } catch (Exception ex) { throw new AuthorizationException(ex.getMessage(), ex); } return permissions; }
438439440441442443444445446447448
(activity.isEnabled() ? "true" : "false") + ")"; conn.execute(sql); } catch (Exception ex) { throw new AuthorizationException(ex.getMessage(), ex); } finally { if (conn != null) {
478479480481482483484485486487488
"WHERE actid='" + DataAgent.sqlFormatTextValue(activityId) + "'"; conn.execute(sql); } catch (Exception ex) { throw new AuthorizationException(ex.getMessage(), ex); } finally { if (conn != null) {