Package org.fenixedu.academic.domain.phd

Examples of org.fenixedu.academic.domain.phd.PhdProgram


    /* Phd Programs */

    public ActionForward showPhdProgramPostingRules(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        final PhdProgram phdProgram = getDomainObject(request, "phdProgramId");
        request.setAttribute("phdProgram", phdProgram);

        return mapping.findForward("showPhdProgramPostingRules");
    }
View Full Code Here


        return mapping.findForward("viewPostingRuleDetails");
    }

    public ActionForward prepareAddGratuityPhdPostingRule(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        final PhdProgram phdProgram = getDomainObject(request, "phdProgramId");
        final CreateGratuityPhdPRPeriodBean period = getRenderedObject("period");
        final CreateGratuityPhdPRQuickBean quirks = getRenderedObject("quirks");
        final CreateGratuityPhdBean bean = getRenderedObject("bean");
        request.setAttribute("phdProgram", phdProgram);
        request.setAttribute("bean", (bean == null) ? new CreateGratuityPhdBean() : bean);
View Full Code Here

    public ActionForward addPeriod(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        final CreateGratuityPhdPRPeriodBean period = getRenderedObject("period");
        final CreateGratuityPhdBean bean = getRenderedObject("bean");
        final CreateGratuityPhdPRQuickBean quirks = getRenderedObject("quirks");
        final PhdProgram phdProgram = getDomainObject(request, "phdProgramId");

        if (period.periodEndDate == null || period.periodStartDate == null || period.limitePaymentDay == null) {
            addErrorMessage(request, "bean", "error.missing.field.in.period.form");
            return prepareAddGratuityPhdPostingRule(mapping, form, request, response);
        }
View Full Code Here

    }

    public ActionForward removePeriod(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        final CreateGratuityPhdBean bean = getRenderedObject("bean");
        final PhdProgram phdProgram = getDomainObject(request, "phdProgramId");
        final int index = Integer.parseInt(request.getParameter("periodToRemove"));

        bean.periods.remove(index);

        request.setAttribute("phdProgram", phdProgram);
View Full Code Here

        request.setAttribute("period", new CreateGratuityPhdPRPeriodBean());
        return mapping.findForward("addPhdProgramPostingRule");
    }

    public ActionForward addQuirk(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
        final PhdProgram phdProgram = getDomainObject(request, "phdProgramId");
        final CreateGratuityPhdPRPeriodBean period = getRenderedObject("period");
        final CreateGratuityPhdPRQuickBean quirks = getRenderedObject("quirks");
        final CreateGratuityPhdBean bean = getRenderedObject("bean");

        bean.getExceptions().add(quirks);
View Full Code Here

        return backToAddPeriod(mapping, request, period, bean, phdProgram, new CreateGratuityPhdPRQuickBean());
    }

    public ActionForward removeQuirk(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        final PhdProgram phdProgram = getDomainObject(request, "phdProgramId");
        final CreateGratuityPhdPRPeriodBean period = getRenderedObject("period");
        final CreateGratuityPhdPRQuickBean quirks = getRenderedObject("quirks");
        final CreateGratuityPhdBean bean = getRenderedObject("bean");
        final int index = Integer.parseInt(request.getParameter("quirkToRemove"));
        bean.getExceptions().remove(index);
View Full Code Here

    }

    public ActionForward addGratuityPhdPostingRule(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        final PhdProgram phdProgram = getDomainObject(request, "phdProgramId");
        CreateGratuityPhdBean bean = (CreateGratuityPhdBean) getRenderedObject("bean");
        try {
            makeGratuityPostingRule(bean, phdProgram);
        } catch (DomainException e) {
            addErrorMessage(request, "bean", e.getMessage());
View Full Code Here

        return mapping.findForward("listPhdProgramForPeriods");
    }

    public ActionForward viewPhdProgramPeriods(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        PhdProgram phdProgram = (PhdProgram) getDomainObject(request, "phdProgramId");

        request.setAttribute("phdProgram", phdProgram);
        return mapping.findForward("viewPhdProgramPeriods");
    }
View Full Code Here

        return viewPhdProgramPeriods(mapping, form, request, response);
    }

    public ActionForward prepareAddPhdProgramPeriod(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        PhdProgram phdProgram = (PhdProgram) getDomainObject(request, "phdProgramId");
        PhdProgramContextPeriodBean bean = new PhdProgramContextPeriodBean(phdProgram);

        request.setAttribute("phdProgram", phdProgram);
        request.setAttribute("phdProgramContextPeriodBean", bean);
View Full Code Here

    }

    public ActionForward addPhdProgramPeriod(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        try {
            PhdProgram phdProgram = getDomainObject(request, "phdProgramId");
            PhdProgramContextPeriodBean bean = getRenderedObject("phdProgramContextPeriodBean");
            phdProgram.create(bean);

        } catch (PhdDomainOperationException e) {
            addErrorMessage(request, e.getKey(), e.getArgs());
            return addPhdProgramPeriodInvalid(mapping, form, request, response);
        }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.phd.PhdProgram

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.