Package org.fenixedu.academic.domain.candidacyProcess.over23

Examples of org.fenixedu.academic.domain.candidacyProcess.over23.Over23IndividualCandidacyProcess$EditCandidacyPersonalInformation


    }

    private ActionForward addDegreeToCandidacy(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response, String forward) {

        final Over23IndividualCandidacyProcessBean bean = getIndividualCandidacyProcessBean();
        request.setAttribute(getIndividualCandidacyProcessBeanName(), bean);
        if (bean.hasDegreeToAdd() && !bean.containsDegree(bean.getDegreeToAdd())) {
            bean.addDegree(bean.getDegreeToAdd());
            bean.setDegreeToAdd(null);
            RenderUtils.invalidateViewState();
        }
        return mapping.findForward(forward);
    }
View Full Code Here


    }

    private ActionForward removeDegreeFromCandidacy(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response, String forward) {

        final Over23IndividualCandidacyProcessBean bean = getIndividualCandidacyProcessBean();
        request.setAttribute(getIndividualCandidacyProcessBeanName(), bean);

        final String degreeId = ((CandidacyForm) actionForm).getDegreeToDelete();
        if (degreeId != null) {
            final Degree degree = getDegree(degreeId);
            if (bean.containsDegree(degree)) {
                bean.removeDegree(degree);
            }
        }

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

    }

    public ActionForward prepareExecuteEditCandidacyPersonalInformation(ActionMapping mapping, ActionForm actionForm,
            HttpServletRequest request, HttpServletResponse response) {

        final IndividualCandidacyProcessBean bean = new Over23IndividualCandidacyProcessBean();
        bean.setPersonBean(new PersonBean(getProcess(request).getPersonalDetails()));
        request.setAttribute(getIndividualCandidacyProcessBeanName(), bean);
        return mapping.findForward("edit-candidacy-personal-information");
    }
View Full Code Here

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

    public ActionForward prepareExecuteEditCandidacyInformation(ActionMapping mapping, ActionForm actionForm,
            HttpServletRequest request, HttpServletResponse response) {
        request.setAttribute(getIndividualCandidacyProcessBeanName(), new Over23IndividualCandidacyProcessBean(
                getProcess(request)));
        return mapping.findForward("edit-candidacy-information");
    }
View Full Code Here

        return removeDegreeFromCandidacy(mapping, actionForm, request, response, "edit-candidacy-information");
    }

    public ActionForward prepareExecuteChangePaymentCheckedState(ActionMapping mapping, ActionForm actionForm,
            HttpServletRequest request, HttpServletResponse response) {
        request.setAttribute(getIndividualCandidacyProcessBeanName(), new Over23IndividualCandidacyProcessBean(
                getProcess(request)));

        return mapping.findForward("change-payment-checked-state");
    }
View Full Code Here

    }

    @Override
    public ActionForward createNewProcess(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws FenixServiceException {
        Over23IndividualCandidacyProcessBean bean = getIndividualCandidacyProcessBean();

        boolean isValid = validateOver23IndividualCandidacy(request, bean) && hasInvalidViewState();
        if (!isValid) {
            request.setAttribute(getIndividualCandidacyProcessBeanName(), getIndividualCandidacyProcessBean());
            return mapping.findForward("fill-candidacy-information");
View Full Code Here

     * * Prepare the beans to choose a person or create a new one
     */
    protected void prepareInformationForBindPersonToCandidacyOperation(HttpServletRequest request,
            IndividualCandidacyProcess process) {
        final IndividualCandidacyProcessBean bean =
                new Over23IndividualCandidacyProcessBean((Over23IndividualCandidacyProcess) process);
        bean.setCandidacyProcess(getParentProcess(request));

        bean.setChoosePersonBean(new ChoosePersonBean(process.getCandidacy().getPersonalDetails()));
        bean.setPersonBean(new PersonBean(process.getCandidacy().getPersonalDetails()));

        request.setAttribute(getIndividualCandidacyProcessBeanName(), bean);
    }
View Full Code Here

        request.setAttribute(getIndividualCandidacyProcessBeanName(), bean);
    }

    public ActionForward prepareExecuteChangeProcessCheckedState(ActionMapping mapping, ActionForm actionForm,
            HttpServletRequest request, HttpServletResponse response) {
        request.setAttribute(getIndividualCandidacyProcessBeanName(), new Over23IndividualCandidacyProcessBean(
                getProcess(request)));

        return mapping.findForward("change-process-checked-state");
    }
View Full Code Here

public class Over23PublicIndividualCandidacyDegreesProvider implements DataProvider {

    @Override
    public Object provide(Object source, Object currentValue) {
        Over23IndividualCandidacyProcessBean over23IndividualCandidacyProcessBean = (Over23IndividualCandidacyProcessBean) source;
        if (over23IndividualCandidacyProcessBean.getCandidacyProcess() != null) {
            return over23IndividualCandidacyProcessBean.getCandidacyProcess().getDegreeSet();
        } else {
            return over23IndividualCandidacyProcessBean.getIndividualCandidacyProcess().getCandidacyProcess().getDegreeSet();
        }
    }
View Full Code Here

    private void setInformationToIntroduceCandidacyResults(HttpServletRequest request) {
        final Over23CandidacyProcess process = getProcess(request);
        final List<Over23IndividualCandidacyResultBean> beans = new ArrayList<Over23IndividualCandidacyResultBean>();
        for (final Over23IndividualCandidacyProcess candidacy : process.getOver23IndividualCandidaciesThatCanBeSendToJury()) {
            beans.add(new Over23IndividualCandidacyResultBean(candidacy));
        }
        request.setAttribute("over23IndividualCandidacyResultBeans", beans);
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.candidacyProcess.over23.Over23IndividualCandidacyProcess$EditCandidacyPersonalInformation

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.