@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); }
@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)); }