Examples of addStringPermission()


Examples of org.apache.shiro.authz.SimpleAuthorizationInfo.addStringPermission()

      List<Menu> list = UserUtils.getMenuList();
      for (Menu menu : list){
        if (StringUtils.isNotBlank(menu.getPermission())){
          // 添加基于Permission的权限信息
          for (String permission : StringUtils.split(menu.getPermission(),",")){
            info.addStringPermission(permission);
          }
        }
      }
      // 更新登录IP和时间
      getSystemService().updateUserLoginInfo(user.getId());
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.