Package tigase.db

Examples of tigase.db.UserNotFoundException


        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);
    }
View Full Code Here


        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);
    }
View Full Code Here

  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
  }
View Full Code Here

          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
  }
View Full Code Here

          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
  }
View Full Code Here

        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
  }
View Full Code Here

          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
  }
View Full Code Here

          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
  }
View Full Code Here

          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
  }
View Full Code Here

          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
  }
View Full Code Here

TOP

Related Classes of tigase.db.UserNotFoundException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.