use of net.jforum.dao.UserDAO in project jforum2 by rafaelsteil.
the class UserAction method groupSearch.
public void groupSearch() {
final int groupId = this.request.getIntParameter("group_id");
if (groupId == 0) {
this.list();
return;
}
UserDAO um = DataAccessDriver.getInstance().newUserDAO();
int start = this.preparePagination(um.getTotalUsersByGroup(groupId));
int usersPerPage = SystemGlobals.getIntValue(ConfigKeys.USERS_PER_PAGE);
this.commonData();
List l = new ArrayList();
l.add(new Integer(groupId));
this.context.put("selectedList", l);
this.context.put("searchAction", "groupSearch");
this.context.put("users", um.selectAllByGroup(groupId, start, usersPerPage));
this.context.put("searchId", new Integer(groupId));
}
Aggregations