List<Sorter> sorters = new ArrayList<Sorter>();
@SuppressWarnings("unchecked")
List<Map<String, String>> sort = (List<Map<String, String>>)
StringUtilities.fromJson(params.get("sort").get(0), List.class);
for (Map<String,String> sortItem : sort) {
sorters.add(new Sorter(sortItem.get("property"), sortItem.get("direction"), null));
}
storeData.setSorters(sorters);
}
if (params.containsKey("group")) {
List<Sorter> groupers = new ArrayList<Sorter>();
@SuppressWarnings("unchecked")
List<Map<String, String>> group = (List<Map<String, String>>)
StringUtilities.fromJson(params.get("group").get(0), List.class);
for (Map<String,String> groupItem : group) {
groupers.add(new Sorter(groupItem.get("property"), groupItem.get("direction"), null));
}
storeData.setGroupers(groupers);
}
if (params.containsKey("filter")) {