Package commons

Examples of commons.NotFoundException


  public User removeUser(User user) throws NotFoundException {
    if(user==null)
      throw new NullPointerException("user should not be null");
    User ua=userDao.findByEmailName(user.getEmail());
    if(ua==null)
      throw new NotFoundException();
    return userDao.removeUser(user);
  }
View Full Code Here


  @Override
  public User findUser(String email) throws NotFoundException {
    User user=userDao.findByEmailName(email);
    if(user==null)
      throw new NotFoundException();
    return user;
  }
View Full Code Here

  public Authority removeAuthory(Authority a) throws NotFoundException{
    if(a==null)
      throw new NullPointerException("authory should not be null");
    Authority authory=authoryDao.find(a.getId());
    if(authory==null)
      throw new NotFoundException();
    authoryDao.removeAuthroy(a);
    return a;
  }
View Full Code Here

TOP

Related Classes of commons.NotFoundException

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.