Example #1
0
  @SearchableDefaults(value = "type_eq=user")
  @Override
  public String list(Searchable searchable, Model model) {

    String typeName = String.valueOf(searchable.getValue("type_eq"));
    model.addAttribute("type", AuthType.valueOf(typeName));

    return super.list(searchable, model);
  }
Example #2
0
  @Override
  protected void setCommonData(Model model) {
    super.setCommonData(model);
    model.addAttribute("types", AuthType.values());

    Searchable searchable = Searchable.newSearchable();
    //        searchable.addSearchFilter("show", SearchOperator.eq, true);
    model.addAttribute("roles", roleService.findAllWithNoPageNoSort(searchable));
  }