Examples of AlertDTO


Examples of net.stinfoservices.pacifiq.shared.dto.inner.AlertDTO

    // DANGEROUS : do not put @Override here !
    public PageAlertDTO clone() {
        PageAlertDTO dtoCopy = new PageAlertDTO();
        List<AlertDTO> as = new ArrayList<AlertDTO>();
        for (AlertDTO a : alerts) {
            AlertDTO aCopy = a.clone();
            as.add(aCopy);
        }
        dtoCopy.setAlerts(as);
        dtoCopy.setCurrentPage(getCurrentPage());
        dtoCopy.setPageSize(getPageSize());
View Full Code Here

Examples of net.stinfoservices.pacifiq.shared.dto.inner.AlertDTO

    public PageAlertDTO findAllAlerts(int currentPage) throws Exception {
        PageAlertDTO page = new PageAlertDTO();
        List<Alert> allAlert = alertDAO.findEntries(currentPage * PAGE_SIZE, PAGE_SIZE);
        List<AlertDTO> allDTO = new ArrayList<AlertDTO>();
        for (Alert alert : allAlert) {
            allDTO.add(new AlertDTO(alert, DTOPath.NOTHING_TO_SAY));
        }
        page.setAlerts(allDTO);
        page.setCurrentPage(currentPage);
        page.setPageSize(PAGE_SIZE);
        page.setRowsCount(alertDAO.count().intValue());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.