Package org.fenixedu.academic.dto.phd

Examples of org.fenixedu.academic.dto.phd.YearMonth


    }

    public ActionForward viewAlertMessageArchive(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {

        YearMonth yearMonthBean = getOrCreateBean(request);
        return forwardToAlertMessageArchive(mapping, request, yearMonthBean);
    }
View Full Code Here


        request.setAttribute("alertMessages", orderedMessages);
        return mapping.findForward("viewAlertMessageArchive");
    }

    public YearMonth getOrCreateBean(HttpServletRequest request) {
        YearMonth yearMonthBean = getRenderedObject("yearMonthBean");
        RenderUtils.invalidateViewState();

        if (yearMonthBean == null) {
            yearMonthBean = createBeanFromRequest(request);
        }
View Full Code Here

    }

    public YearMonth createBeanFromRequest(HttpServletRequest request) {
        String year = (String) getFromRequest(request, "year");
        String month = (String) getFromRequest(request, "month");
        YearMonth yearMonthBean;
        if (StringUtils.isEmpty(year)) {
            yearMonthBean = new YearMonth(Calendar.getInstance().get(Calendar.YEAR), null);
        } else if (StringUtils.isEmpty(month)) {
            yearMonthBean = new YearMonth(Integer.valueOf(year), null);
        } else {
            yearMonthBean = new YearMonth(Integer.valueOf(year), Integer.valueOf(month));
        }
        yearMonthBean.setFirstYear(FIRST_YEAR_TO_SHOW_ARCHIVE_MESSAGES_FROM);
        return yearMonthBean;
    }
View Full Code Here

    }

    public ActionForward viewProcessAlertMessageArchive(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {

        YearMonth yearMonthBean = getOrCreateBean(request);
        return forwardToProcessAlertMessageArchive(mapping, request, yearMonthBean);
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.dto.phd.YearMonth

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.