UserNotFoundException
Created: Wed Oct 27 14:17:44 2004
189190191192193194195196197198199
rs = status_st.executeQuery(); if (rs.next()) { int res = rs.getInt(1); return (rs.wasNull() || res == 0); } else { throw new UserNotFoundException("User does not exist: " + user); } // end of if (isnext) else } } finally { release(null, rs); }
207208209210211212213214215216217
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); }
130131132133134135136137
public synchronized void removeUser(final String user) throws UserNotFoundException { try { xmldb.removeNode1(user); } catch (NodeNotFoundException e) { throw new UserNotFoundException(USER_STR + user + NOT_FOUND_STR, e); } // end of try-catch }
175176177178179180181182183
xmldb.setData(user, subnode, key, value); } catch (Exception ex) { throw new TigaseDBException("Unknown repository problem: ", ex); } } else { throw new UserNotFoundException(USER_STR+user+NOT_FOUND_STR, e); } } // end of try-catch }
234235236237238239240241242
xmldb.setData(user, subnode, key, list); } catch (Exception ex) { throw new TigaseDBException("Unknown repository problem: ", ex); } } else { throw new UserNotFoundException(USER_STR+user+NOT_FOUND_STR, e); } } // end of try-catch }
271272273274275276277278279
xmldb.setData(user, subnode, key, all); } else { xmldb.setData(user, subnode, key, list); } // end of else } catch (NodeNotFoundException e) { throw new UserNotFoundException(USER_STR+user+ NOT_FOUND_STR, e); } // end of try-catch }
305306307308309310311312313
return xmldb.getDataList(user, subnode, key); } catch (Exception ex) { throw new TigaseDBException("Unknown repository problem: ", ex); } } else { throw new UserNotFoundException(USER_STR+user+NOT_FOUND_STR, e); } } // end of try-catch }
341342343344345346347348349
return (String)xmldb.getData(user, subnode, key, def); } catch (Exception ex) { throw new TigaseDBException("Unknown repository problem: ", ex); } } else { throw new UserNotFoundException(USER_STR+user+NOT_FOUND_STR, e); } } // end of try-catch }
409410411412413414415416417
return xmldb.getSubnodes(user, subnode); } catch (Exception ex) { throw new TigaseDBException("Unknown repository problem: ", ex); } } else { throw new UserNotFoundException(USER_STR+user+NOT_FOUND_STR, e); } } // end of try-catch }
457458459460461462463464465
return xmldb.getKeys(user, subnode); } catch (Exception ex) { throw new TigaseDBException("Unknown repository problem: ", ex); } } else { throw new UserNotFoundException(USER_STR+user+NOT_FOUND_STR, e); } } // end of try-catch }