code: public String activate() {
      Long[] userIds = getLongIds("user");
      String isActivate = get("isActivate");
      int successCnt;
      User manager = userService.get(SecurityUtils.getUsername());
      String msg = "security.info.freeze.success";
      if (Strings.isNotEmpty(isActivate) && "false".equals(isActivate)) {
        successCnt = securityHelper.getUserService().updateState(manager, userIds, false);
      } else {
        msg = "security.info.activate.success";
        successCnt = securityHelper.getUserService().updateState(manager, userIds, true);
      }
      addFlashMessage(msg, successCnt);
      return redirect("search");
    }
docs: 禁用或激活一个或多个用户