UserNotFoundException
Created: Wed Oct 27 14:17:44 2004
502503504505506507508509510
throws UserNotFoundException { try { xmldb.removeData(user, subnode, key); } catch (NodeNotFoundException e) { if (!autoCreateUser) { throw new UserNotFoundException(USER_STR+user+NOT_FOUND_STR, e); } } // end of try-catch }
543544545546547548549550551
throws UserNotFoundException { try { xmldb.removeSubnode(user, subnode); } catch (NodeNotFoundException e) { if (!autoCreateUser) { throw new UserNotFoundException(USER_STR+user+NOT_FOUND_STR, e); } } // end of try-catch }
191192193194195196197198199200201
} if (result <= 0) { if (autoCreate) { result = addUserRepo(user_id); } else { throw new UserNotFoundException("User does not exist: " + user_id); } // end of if (autoCreate) else } // end of if (isnext) else } } finally { release(null, rs);
355356357358359360361362363364365
get_pass.setString(1, JIDUtils.getNodeID(user)); rs = get_pass.executeQuery(); if (rs.next()) { return rs.getString(1); } else { throw new UserNotFoundException("User does not exist: " + user); } // end of if (isnext) else } } catch (SQLException e) { throw new TigaseDBException("Problem with retrieving user password.", e); } finally {
471472473474475476477478479480481
log.fine("Login failed, for user: '" + user_id + "'" + ", password: '" + password + "'" + ", from DB got: " + rs.getString(1)); } } throw new UserNotFoundException("User does not exist: " + user); } } catch (SQLException e) { throw new TigaseDBException("Problem accessing repository.", e); } finally { release(null, rs);
11321133113411351136113711381139114011411142
String[] list) throws UserNotFoundException { try { if (rep.userExists(user)) { rep.addDataList(user, calcNode(OFFLINE_DATA_NODE, subnode), key, list); } else { throw new UserNotFoundException("User: " + user + " has not been found inthe repository."); } } catch (UserNotFoundException e) { log.warning("User not found in repository: " + user); } catch (TigaseDBException e) {
218219220221222223224225226227228
status_st.setString(1, JIDUtils.getNodeNick(user)); rs = status_st.executeQuery(); if (rs.next()) { return (rs.getInt(1) == 1); } else { throw new UserNotFoundException("User does not exist: " + user); } // end of if (isnext) else } } finally { release(null, rs); }
256257258259260261262263264265266
pass_st.setString(1, JIDUtils.getNodeNick(user)); rs = pass_st.executeQuery(); if (rs.next()) { return rs.getString(1); } else { throw new UserNotFoundException("User does not exist: " + user); } // end of if (isnext) else } } finally { release(null, rs); }
195196197198199200201202203204205
get_pass_sp.setString(1, JIDUtils.getNodeID(user)); rs = get_pass_sp.executeQuery(); if (rs.next()) { return rs.getString(1); } else { throw new UserNotFoundException("User does not exist: " + user); } // end of if (isnext) else } } finally { release(null, rs); }
286287288289290291292293294295296