Package net.stinfoservices.pacifiq.shared.dto.page

Examples of net.stinfoservices.pacifiq.shared.dto.page.PageUzerProfileDTO


        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;
    }
View Full Code Here

TOP

Related Classes of net.stinfoservices.pacifiq.shared.dto.page.PageUzerProfileDTO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.