public Long getTotalUsers() {
return getUserDao().getTotalUsers(null, null, null, null, null, null, null);
}
public boolean isUserInGroup(String username, String groupName) {
Group group = getGroupDao().getGroupByName(groupName);
if (group != null) {
Collection<User> users = getUserDao().getUsers(username, null, null, null, group.getId(), null, null, null, null, null, null);
if (users != null) {
for (User user : users) {
if (user.getUsername().equals(username)) {
return true;