Package org.fenixedu.academic.domain.phd.candidacy

Examples of org.fenixedu.academic.domain.phd.candidacy.RegistrationFormalizationBean


            return new DomainObjectKeyConverter();
        }

        @Override
        public Object provide(Object source, Object currentValue) {
            final RegistrationFormalizationBean bean = (RegistrationFormalizationBean) source;
            return bean.getAvailableRegistrationsToAssociate();
        }
View Full Code Here


    // Edit when started studies
    public ActionForward prepareEditWhenStartedStudies(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {

        final RegistrationFormalizationBean bean = new RegistrationFormalizationBean();
        bean.setWhenStartedStudies(getProcess(request).getWhenStartedStudies());

        request.setAttribute("registrationFormalizationBean", bean);
        return mapping.findForward("editWhenStartedStudies");
    }
View Full Code Here

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

        final PhdIndividualProgramProcess process = getProcess(request);
        final RegistrationFormalizationBean bean = getRenderedObject("registrationFormalizationBean");

        try {

            ExecuteProcessActivity.run(process, EditWhenStartedStudies.class.getSimpleName(), bean);
View Full Code Here

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

        checkCandidacyPreConditions(request);
        final RegistrationFormalizationBean bean = new RegistrationFormalizationBean(getProcess(request));
        request.setAttribute("registrationFormalizationBean", bean);
        return mapping.findForward("registrationFormalization");
    }
View Full Code Here

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

        try {

            final RegistrationFormalizationBean bean = getRenderedObject("registrationFormalizationBean");

            if (!bean.hasRegistration() && mustSelectFirstAnyRegistratiom(request)) {
                bean.setSelectRegistration(true);
                return registrationFormalizationInvalid(mapping, actionForm, request, response);
            }

            ExecuteProcessActivity.run(getProcess(request),
                    org.fenixedu.academic.domain.phd.candidacy.activities.RegistrationFormalization.class, bean);
View Full Code Here

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

        final PhdProgramCandidacyProcess process = getProcess(request);
        final RegistrationFormalizationBean bean = new RegistrationFormalizationBean(process);
        bean.setWhenStartedStudies(process.getWhenStartedStudies());

        request.setAttribute("registrationFormalizationBean", bean);
        return mapping.findForward("associateRegistration");
    }
View Full Code Here

        final PhdStudyPlanBean planBean = new PhdStudyPlanBean(individualProcess);
        planBean.setExempted(true);
        ExecuteProcessActivity.run(individualProcess, AddStudyPlan.class.getSimpleName(), planBean);

        final PhdProgramCandidacyProcess candidacyProcess = individualProcess.getCandidacyProcess();
        final RegistrationFormalizationBean formalizationBean = new RegistrationFormalizationBean(candidacyProcess);
        formalizationBean.setWhenStartedStudies(getMostAccurateStartDevelopmentDate());
        formalizationBean.setSelectRegistration(false);
        ExecuteProcessActivity.run(candidacyProcess,
                org.fenixedu.academic.domain.phd.candidacy.activities.RegistrationFormalization.class.getSimpleName(),
                formalizationBean);
    }
View Full Code Here

    }

    @Override
    protected PhdIndividualProgramProcess executeActivity(PhdIndividualProgramProcess process, User userView, Object object) {

        final RegistrationFormalizationBean bean = (RegistrationFormalizationBean) object;
        Object obj = bean.getWhenStartedStudies();
        String[] args = {};

        if (obj == null) {
            throw new DomainException("error.PhdIndividualProgramProcess.EditWhenStartedStudies.invalid.when.started.studies",
                    args);
        }

        process.setWhenStartedStudies(bean.getWhenStartedStudies());

        if (process.getRegistration() != null) {
            process.getRegistration().editStartDates(bean.getWhenStartedStudies(),
                    process.getCandidacyProcess().getWhenRatified(), bean.getWhenStartedStudies());
        }

        return process;
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.phd.candidacy.RegistrationFormalizationBean

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.