Exemplo n.º 1
0
  public String save() {
    logger.debug("userIds: {}, roleIds: {}", userIds, roleIds);

    for (Long userId : userIds) {
      authService.configUserRole(
          userId, roleIds, ScopeHolder.getUserRepoRef(), ScopeHolder.getScopeId(), false);
    }

    return RELOAD;
  }
  @RequestMapping("user-statuc-batch-save")
  public String save(
      @RequestParam("userIds") List<Long> userIds, @RequestParam("roleIds") List<Long> roleIds) {
    logger.debug("userIds: {}, roleIds: {}", userIds, roleIds);

    for (Long userId : userIds) {
      authService.configUserRole(
          userId, roleIds, tenantHolder.getUserRepoRef(), tenantHolder.getTenantId(), false);
    }

    return "redirect:/auth/user-status-batch-input.do";
  }