Page page = new Page(conf.getIntValue(UserConfiguration.Key.LIST_NUMBER_ROWS), form.getPage());
String paramName = form.getName();
RoleDAO.AdminSelect paramAdmin = EnumUtility.valueOf(RoleDAO.AdminSelect.class, form.getAdmin(), RoleDAO.AdminSelect.ALL);
RoleDAO dao = new RoleDAO();
count = dao.countList(paramName, paramAdmin, user);
if (count < page.getFirstEntry())
page.setPage(1);
if (count > 0)
list = dao.getList(paramName, paramAdmin, sort, page, user);
else
list = new ArrayList<RoleVO>();
ScrollBean scroll = new ScrollBean();
scroll.setCount(count);