Package us.jyg.freshet.dao.model

Examples of us.jyg.freshet.dao.model.User


        }

        if (name == null || host == null || password == null)
            throw new LoginException("Empty name, host or password");

        User user = userManager.getUser(name);

        if (user == null)
            throw new LoginException("No such user \""+name+"\"");

        if (canAuthenticate(name, password)) {
View Full Code Here


    public List<User> getUsers() {
        return userDao.getUsers();
    }

    public void renameUser(Integer id, String newName) {
        User user = userDao.getUser(id);
        user.setUsername(newName);
        userDao.saveUser(user);
    }
View Full Code Here

    } catch (Exception e) {
      log.warn("cannot get local host name, weird - bailing on auth.");
    }
   
    if (userMap.containsKey(host)) {
        User user = (User)userMap.get(host);
       
        if (userMap.remove(host) == null)
          log.error( "could not remove " + user.getUsername() + "@" + host + " from user map,  weird.");
        else
          log.info( user.getUsername() + "@" + host + " logs out");
    } else 
      log.error( host + " logs out  but is not in the user map, weird.");
  }
View Full Code Here

TOP

Related Classes of us.jyg.freshet.dao.model.User

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.