Package org.springside.examples.quickstart.service

Examples of org.springside.examples.quickstart.service.ServiceException


  }

  public void deleteUser(Long id) {
    if (isSupervisor(id)) {
      logger.warn("操作员{}尝试删除超级管理员用户", getCurrentUserName());
      throw new ServiceException("不能删除超级管理员用户");
    }
    userDao.delete(id);
    taskDao.deleteByUserId(id);

  }
View Full Code Here

TOP

Related Classes of org.springside.examples.quickstart.service.ServiceException

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.