Examples of PersonalInformationBean


Examples of org.fenixedu.academic.domain.candidacy.PersonalInformationBean

        return mapping.findForward("editCandidacyInformation");
    }

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

        final PersonalInformationBean personalInformationBean = getRenderedObject("personalInformationBean");

        if (personalInformationBean.getSchoolLevel() != null
                && personalInformationBean.getSchoolLevel().isHighSchoolOrEquivalent()) {
            personalInformationBean.setCountryWhereFinishedHighSchoolLevel(personalInformationBean
                    .getCountryWhereFinishedPreviousCompleteDegree());
        }

        final Set<String> messages = personalInformationBean.validateForAcademicService();
        if (!messages.isEmpty()) {
            for (final String each : messages) {
                addActionMessage(request, each);
            }
            request.setAttribute("personalInformationBean", personalInformationBean);
            return mapping.findForward("editCandidacyInformation");
        }

        try {
            personalInformationBean.updatePersonalInformation(false);
        } catch (DomainException e) {
            addActionMessage(request, e.getKey(), e.getArgs());

            request.setAttribute("personalInformationBean", personalInformationBean);
            return mapping.findForward("editCandidacyInformation");
        }

        request.setAttribute("studentID", personalInformationBean.getStudent().getExternalId());
        return mapping.findForward("visualizeStudent");
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.candidacy.PersonalInformationBean

        if (precedentInformation == null) {
            precedentInformation = getLatestPrecedentDegreeInformation();
        }
        if (precedentInformation == null) {
            return new PersonalInformationBean(this);
        }

        return new PersonalInformationBean(precedentInformation);
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.candidacy.PersonalInformationBean

        if (precedentInformation == null) {
            precedentInformation = getLatestPrecedentDegreeInformation();
        }
        if (precedentInformation == null) {
            return new PersonalInformationBean(this);
        }

        return new PersonalInformationBean(precedentInformation);
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.candidacy.PersonalInformationBean

public class GrantOwnerTypesProvider implements DataProvider {

    @Override
    public Object provide(Object source, Object currentValue) {
        if (source instanceof PersonalInformationBean) {
            PersonalInformationBean personalInformationBean = (PersonalInformationBean) source;
            Student student = personalInformationBean.getStudent();
            boolean isThirdCycle = false;
            boolean isFirstOrSecondCycle = false;

            isThirdCycle = student.hasActivePhdProgramProcess();
            for (Registration registration : student.getActiveRegistrations()) {
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.