return page;
}
@Override
public PageUzerProfileDTO findAllUzerProfiles(int currentPage, UzerProfileOrderBy orderBy) {
PageUzerProfileDTO page = new PageUzerProfileDTO();
try {
List<UzerProfile> allBP = profileDAO.findUzerProfileEntries(currentPage * PAGE_SIZE, PAGE_SIZE, orderBy);
List<UzerProfileDTO> allDTO = new ArrayList<UzerProfileDTO>();
for (UzerProfile bp : allBP) {
// ADMIN_UZER_CRUD permits Uzer<=>Program recursive
// interdependence infinite loop...
allDTO.add(new UzerProfileDTO(bp, DTOPath.ADMIN_UZERPROFILE_CRUD));
}
page.setUzerProfiles(allDTO);
page.setCurrentPage(currentPage);
page.setPageSize(PAGE_SIZE);
page.setRowsCount(profileDAO.findUzerProfileEntriesCount());
} catch (Exception e) {
e.printStackTrace();
}
return page;
}