checkbox_UserList_ShowAll.setChecked(false);
tb_SecUser_Lastname.setValue("");
tb_SecUser_Email.setValue("");
HibernateSearchObject<SecUser> soUser = new HibernateSearchObject<SecUser>(SecUser.class, getCountRows());
soUser.addFilter(new Filter("usrLoginname", "%" + tb_SecUser_Loginname.getValue() + "%", Filter.OP_ILIKE));
soUser.addSort("usrLoginname", false);
/*
* New check the rights. If UserOnly mode than show only the users
* data
*/
final UserWorkspace workspace = getUserWorkspace();
// special right for see all other users
if (workspace.isAllowed("data_SeeAllUserData")) {
// show all users
// Set the ListModel.
getPagedListWrapper().init(soUser, listBoxUser, paging_UserList);
} else {
// show only logged in users data
String userName = SecurityContextHolder.getContext().getAuthentication().getName();
soUser.addFilter(new Filter("usrLoginname", userName, Filter.OP_EQUAL));
// Set the ListModel.
getPagedListWrapper().init(soUser, listBoxUser, paging_UserList);
}
}