code: public String activate() {
      Integer[] resourceIds = getIntIds("resource");
      Boolean enabled = getBoolean("enabled");
      if (null == enabled) {
        enabled = Boolean.FALSE;
      }
      securityHelper.getFuncPermissionService().updateState(resourceIds, enabled.booleanValue());
      authorityManager.refreshCache();
      return redirect("search", "info.save.success");
    }
docs: 禁用或激活一个或多个模块