Package org.g4studio.common.dao

Examples of org.g4studio.common.dao.Dao.queryForList()


    String userType = request.getParameter("usertype");
    if (userType.equals(SystemConstants.USERTYPE_ADMIN)) {
      qDto.put("menutype", SystemConstants.MENUTYPE_SYSTEM);
    }
    if (account.equalsIgnoreCase(developerAccount) || account.equalsIgnoreCase(superAccount)) {
      menuList = g4Dao.queryForList("ArmTagSupport.queryMenusForUserGrant", qDto);
    }else {
      menuList = g4Dao.queryForList("ArmTagSupport.queryMenusForGrant", qDto);
    }
    for(int i = 0; i < menuList.size(); i++){
      MenuVo menuVo = (MenuVo)menuList.get(i);
View Full Code Here


      qDto.put("menutype", SystemConstants.MENUTYPE_SYSTEM);
    }
    if (account.equalsIgnoreCase(developerAccount) || account.equalsIgnoreCase(superAccount)) {
      menuList = g4Dao.queryForList("ArmTagSupport.queryMenusForUserGrant", qDto);
    }else {
      menuList = g4Dao.queryForList("ArmTagSupport.queryMenusForGrant", qDto);
    }
    for(int i = 0; i < menuList.size(); i++){
      MenuVo menuVo = (MenuVo)menuList.get(i);
      if(checkGeant(grantedList, menuVo.getMenuid()).booleanValue()){
        menuVo.setChecked("true");
View Full Code Here

    Dao g4Dao = (Dao) SpringBeanLoader.getSpringBean("g4Dao");
    Dto qDto = new BaseDto();
    UserInfoVo userInfoVo = WebUtils.getSessionContainer(request).getUserInfo();
    qDto.put("userid", userInfoVo.getUserid());
    qDto.put("menuid", request.getParameter("menuid4Log"));
    List roleGrantList = g4Dao.queryForList("ArmTagSupport.getUiRoleGrantInfo", qDto);
    List userGrantList = g4Dao.queryForList("ArmTagSupport.getUiUserGrantInfo", qDto);
    List grantList = new ArrayList();
    if (G4Utils.isNotEmpty(roleGrantList)) {
      grantList.addAll(roleGrantList);
    }
View Full Code Here

    Dto qDto = new BaseDto();
    UserInfoVo userInfoVo = WebUtils.getSessionContainer(request).getUserInfo();
    qDto.put("userid", userInfoVo.getUserid());
    qDto.put("menuid", request.getParameter("menuid4Log"));
    List roleGrantList = g4Dao.queryForList("ArmTagSupport.getUiRoleGrantInfo", qDto);
    List userGrantList = g4Dao.queryForList("ArmTagSupport.getUiUserGrantInfo", qDto);
    List grantList = new ArrayList();
    if (G4Utils.isNotEmpty(roleGrantList)) {
      grantList.addAll(roleGrantList);
    }
    if (G4Utils.isNotEmpty(userGrantList)) {
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.