424344454647484950
Connection conn = null; try { conn = this.getDataSource().getConnection(); } catch (SQLException e) { SystemUtils.logThrowable(e, this, "getConnection"); throw new SystemException("Error in creation of datasource", e); } return conn; }
3536373839404142
this._guest = this.getUser(IUser.GUEST_USER_NAME); if (_guest != null) { SystemUtils.getLogger().config( this.getClass().getName() + ": initialisation of default user"); } else { throw new SystemException("Error downloading user: guest nullo"); } }
525354555657585960
List users = new ArrayList(); try { Map roles = this.getRoleManager().getRoles(); users = this.getUserDAO().loadUsers(roles); } catch (Throwable t) { throw new SystemException("Error downloading user list", t); } return users; }
6869707172737475
public void removeUser(IUser user) throws SystemException { try { this.getUserDAO().deleteUser(user); } catch (Throwable t) { SystemUtils.logThrowable(t, this, "removeUser"); throw new SystemException("Error removing user", t); } }
8485868788899091
SystemUtils.getLogger().finest("Invocato"); try { this.getUserDAO().updateUser(user); } catch (Throwable t) { SystemUtils.logThrowable(t, this, "updateUser"); throw new SystemException("Error updating user", t); } }
100101102103104105106107
SystemUtils.getLogger().finest("Invocato"); try { this.getUserDAO().addUser(user); } catch (Throwable t) { SystemUtils.logThrowable(t, this, "addUser"); throw new SystemException("Error in adding user", t); } }
117118119120121122123124125
User user = null; try { Map roles = this.getRoleManager().getRoles(); user = this.getUserDAO().loadUser(userName, roles); } catch (Throwable t) { throw new SystemException("Error in downloading user", t); } return user; }
135136137138139140141142143
User user = null; try { Map roles = this.getRoleManager().getRoles(); user = this.getUserDAO().loadUser(userName, password, roles); } catch (Throwable t) { throw new SystemException("Error in downloading user", t); } return user; }
197198199200201202203204205
users.add(user); } } } catch (Throwable t) { SystemUtils.logThrowable(t, this, "activateProfile"); throw new SystemException("Error in activating profile", t); } return users; }
4445464748495051
private void loadAuthConfiguration() throws SystemException { try { _roles = this.getRoleDAO().loadRoles(); _permissions = this.getPermissionDAO().loadPermissions(); } catch (Throwable t) { throw new SystemException("Errore in caricamento ruoli e permessi", t); } }