Examples of UserNotFoundException


Examples of org.sonatype.security.usermanagement.UserNotFoundException

      catch (LdapDAOException e) {
        log.debug("User: " + userId + " not found, cause: " + e.getMessage(), e);
        throw new UserNotFoundTransientException(userId, e.getMessage(), e);
      }
    }
    throw new UserNotFoundException(userId);
  }
View Full Code Here

Examples of ru.org.linux.user.UserNotFoundException

    when(userDao.getUser("splinter")).thenReturn(splinter);

    when(userDao.getUser("maxcom")).thenReturn(maxcom);
    when(userDao.getUser("JB")).thenReturn(JB);
    when(userDao.getUser("isden")).thenReturn(isden);
    when(userDao.getUser("hizel")).thenThrow(new UserNotFoundException("hizel"));

    String mainUrl = "http://127.0.0.1:8080/";
    URI mainURI = new URI(mainUrl, true, "UTF-8");

    SiteConfig siteConfig = mock(SiteConfig.class);
View Full Code Here

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

Examples of tigase.db.UserNotFoundException

        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

Examples of tigase.db.UserNotFoundException

  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

Examples of tigase.db.UserNotFoundException

          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

Examples of tigase.db.UserNotFoundException

          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

Examples of tigase.db.UserNotFoundException

        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

Examples of tigase.db.UserNotFoundException

          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

Examples of tigase.db.UserNotFoundException

          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
TOP
Copyright © 2018 www.massapi.com. 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.