Package com.wizriver.service

Examples of com.wizriver.service.ServiceException


   * 删除用户,如果尝试删除超级管理员将抛出异常.
   */
  public void deleteUser(Long id) {
    if (isSupervisor(id)) {
      logger.warn("操作员{}尝试删除超级管理员用户", SpringSecurityUtils.getCurrentUserName());
      throw new ServiceException("不能删除超级管理员用户");
    }
    ssUserDao.remove(id);
  }
View Full Code Here

TOP

Related Classes of com.wizriver.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.