Examples of NoSuchUserException


Examples of com.icegreen.greenmail.user.NoSuchUserException

    }

    public GreenMailUser getUser(String username) throws UserException {
        GreenMailUser user = _manager.getUser(username);
        if (null == user) {
            throw new NoSuchUserException(username + " doesn't exist");
        }
        return user;
    }
View Full Code Here

Examples of com.liferay.portal.NoSuchUserException

              }

              if ((user == null) || (!UtilMethods.isSet(user.getEmailAddress()))) {
              SecurityLogger.logInfo(LoginFactory.class,"An invalid attempt to login or no email set for " + userName + " from IP: " + request.getRemoteAddr());

                throw new NoSuchUserException();
              }

              if (user.isNew() ||
                  (!Config.getBooleanProperty("ALLOW_INACTIVE_ACCOUNTS_TO_LOGIN", false) && !user.isActive())) {
              SecurityLogger.logInfo(LoginFactory.class,"An invalid attempt to login to an inactive account as " + userName + " from IP: " + request.getRemoteAddr());
View Full Code Here

Examples of com.sun.enterprise.security.auth.realm.NoSuchUserException

        throws NoSuchUserException
    {
        FileRealmUser u = (FileRealmUser)userTable.get(name);
        if (u == null) {
            String msg = sm.getString("filerealm.nouser", name);
            throw new NoSuchUserException(msg);
        }
        return u;
    }
View Full Code Here

Examples of com.sun.enterprise.security.auth.realm.NoSuchUserException

        throws NoSuchUserException
    {
        FileRealmUser ud = (FileRealmUser)userTable.get(username);
        if (ud == null) {
            String msg = sm.getString("filerealm.nouser", username);
            throw new NoSuchUserException(msg);
        }

        String[] groups = ud.getGroups();
        groups = addAssignGroups(groups);
        Vector v = new Vector();
View Full Code Here

Examples of com.sun.enterprise.security.auth.realm.NoSuchUserException

    public synchronized void removeUser(String name)
        throws NoSuchUserException
    {
        if (!userTable.containsKey(name)) {
            String msg = sm.getString("filerealm.nouser", name);
            throw new NoSuchUserException(msg);
        }

        FileRealmUser oldUser = (FileRealmUser)userTable.get(name);
        userTable.remove(name);
        reduceGroups(oldUser.getGroups());
View Full Code Here

Examples of com.sun.enterprise.security.auth.realm.NoSuchUserException

    {
                                // user to modify must exist first
        validateUserName(name);
        if (!userTable.containsKey(name)) {
            String msg = sm.getString("filerealm.nouser", name);
            throw new NoSuchUserException(msg);
        }

                                // do general validation
        validateUserName(newName);
        validateGroupList(groups);
View Full Code Here

Examples of edu.uga.galileo.voci.exception.NoSuchUserException

        // throw new NoSuchUserException("The requested user name ("
        // + userName + ") doesn't exist.");
      }
    } catch (SQLException e) {
      Logger.warn("User record couldn't be retrieved", e);
      throw new NoSuchUserException(
          "SQLException prevented user record retrieval: "
              + e.getMessage());
    }

    return user;
View Full Code Here

Examples of org.apache.mahout.cf.taste.common.NoSuchUserException

   */
  @Override
  public PreferenceArray getPreferencesFromUser(long userID) throws NoSuchUserException {
    FastIDSet itemIDs = preferenceFromUsers.get(userID);
    if (itemIDs == null) {
      throw new NoSuchUserException();
    }
    PreferenceArray prefArray = new BooleanUserPreferenceArray(itemIDs.size());
    int i = 0;
    LongPrimitiveIterator it = itemIDs.iterator();
    while (it.hasNext()) {
View Full Code Here

Examples of org.apache.mahout.cf.taste.common.NoSuchUserException

 
  @Override
  public FastIDSet getItemIDsFromUser(long userID) throws TasteException {
    FastIDSet itemIDs = preferenceFromUsers.get(userID);
    if (itemIDs == null) {
      throw new NoSuchUserException();
    }
    return itemIDs;
  }
View Full Code Here

Examples of org.apache.mahout.cf.taste.common.NoSuchUserException

 
  @Override
  public Float getPreferenceValue(long userID, long itemID) throws NoSuchUserException {
    FastIDSet itemIDs = preferenceFromUsers.get(userID);
    if (itemIDs == null) {
      throw new NoSuchUserException();
    }
    if (itemIDs.contains(itemID)) {
      return 1.0f;
    }
    return null;
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.