public String relatedRightForward() {
   this.logger.debug("enter relatedRight");
   Map<String, Object> map =
       EcsideUtil.getQurey(this.request, "", new Boolean(false).booleanValue());
   QueryConditions qc = getQueryConditions(map);
   String userId = this.request.getParameter("userId");
   User user = this.userService.loadUserById(userId, false, true, false);
   String logonIdString = AclCtrl.getLogonID(this.request);
   User logonUser = this.userService.loadUserById(logonIdString, false, true, false);
   boolean flag = false;
   for (Role role : logonUser.getRoleSet()) {
     if (role.getType().equals(ActionConstant.DEF_SUPERADMIN)) {
       flag = true;
     }
   }
   if (!flag) {
     this.request.setAttribute("roleList", logonUser.getOperateRoleSet());
   } else {
     qc.addCondition(
         "primary.memberNo",
         "=",
         this.request.getSession().getAttribute(ActionConstant.REGISTERID));
     List<Role> roleList = this.roleService.getList(qc, null);
     this.request.setAttribute("roleList", roleList);
   }
   this.request.setAttribute("user", user);
   this.request.setAttribute(
       "ISSUPTERADMIN", this.request.getSession().getAttribute("ISSUPERADMIN"));
   return getReturnValue();
 }
  public String serverInfolist() {
    this.logger.debug("enter HQServerInfoAction serverInfolist");
    String sortName =
        this.request.getParameter("sortName") != null
            ? this.request.getParameter("sortName")
            : "primary.serverRank";
    String sortOrder =
        this.request.getParameter("sortOrder") != null
            ? this.request.getParameter("sortOrder")
            : "false";
    if (this.request.getAttribute("sortString") != null) {
      String orderString = (String) this.request.getAttribute("sortString");
      ThreadStore.put("orderString", orderString);
    }
    Map<String, Object> map =
        EcsideUtil.getQurey(this.request, sortName, new Boolean(sortOrder).booleanValue());
    PageInfo pageInfo = getPageInfo(map);

    QueryConditions qc = getQueryConditions(map);
    this.resultList = getService().getList(qc, pageInfo);
    this.logger.debug("resultList  size:" + this.resultList.size());
    EcsideUtil.setRowAttributes(this.request, pageInfo.getTotalRecords());
    returnBaseMsg(pageInfo);
    this.obj = null;
    return getReturnValue();
  }
 public String relatedRight() {
   this.logger.debug("enter relatedRight");
   String userId = this.request.getParameter("userId");
   Map<String, Object> map =
       EcsideUtil.getQurey(this.request, "", new Boolean(false).booleanValue());
   QueryConditions qc = getQueryConditions(map);
   String[] cksString = this.request.getParameterValues("ck");
   String[] operateCks = this.request.getParameterValues("operateCk");
   qc.addCondition(
       "primary.memberNo", "=", this.request.getSession().getAttribute(ActionConstant.REGISTERID));
   List<List<String>> inStrings =
       this.userService.getRelatedIds(
           userId, AclCtrl.getLogonID(this.request), cksString, qc, operateCks);
   int value =
       this.userService.relatedRight(
           userId,
           AclCtrl.getLogonID(this.request),
           inStrings,
           (String) this.request.getSession().getAttribute(ActionConstant.REGISTERID));
   addResultMsg(this.request, value);
   return getReturnValue();
 }