Package org.fenixedu.academic.dto.person

Examples of org.fenixedu.academic.dto.person.PersonBean


        RenderUtils.invalidateViewState();

        UploadOwnPhoto.run(ByteStreams.toByteArray(photo.getFileInputStream()),
                ContentType.getContentType(photo.getContentType()));
        final Person person = Authenticate.getUser().getPerson();
        request.setAttribute("personBean", new PersonBean(person));
        EmergencyContactBean emergencyContactBean = new EmergencyContactBean(person);
        request.setAttribute("emergencyContactBean", emergencyContactBean);
        return mapping.findForward("visualizePersonalInformation");
    }
View Full Code Here


        return mapping.findForward("visualizePersonalInformation");
    }

    public ActionForward cancel(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        request.setAttribute("personBean", new PersonBean(AccessControl.getPerson()));
        request.setAttribute("emergencyContactBean", new EmergencyContactBean(AccessControl.getPerson()));
        return mapping.findForward("visualizePersonalInformation");
    }
View Full Code Here

            HttpServletResponse response) throws Exception {
        Photograph photo = AccessControl.getPerson().getPersonalPhotoEvenIfRejected();
        if (photo != null) {
            photo.cancelSubmission();
        }
        request.setAttribute("personBean", new PersonBean(AccessControl.getPerson()));
        request.setAttribute("emergencyContactBean", new EmergencyContactBean(AccessControl.getPerson()));
        return mapping.findForward("visualizePersonalInformation");
    }
View Full Code Here

        return mapping.findForward("visualizePersonalInformation");
    }

    public ActionForward backToShowInformation(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {
        request.setAttribute("personBean", new PersonBean(AccessControl.getPerson()));
        request.setAttribute("emergencyContactBean", new EmergencyContactBean(AccessControl.getPerson()));
        return mapping.findForward("visualizePersonalInformation");
    }
View Full Code Here

    public IndividualCandidacyExternalPersonDetails(IndividualCandidacy candidacy, IndividualCandidacyProcessBean bean) {
        super();
        setCandidacy(candidacy);
        setInternalized(Boolean.FALSE);

        PersonBean personBean = bean.getPersonBean();
        edit(personBean);
    }
View Full Code Here

        try {
            EmergencyContact.updateEmergencyContact(person.getProfile(), emergencyContactBean.getContact());
        } catch (DomainException e) {
            addActionMessage(request, e.getKey());
            request.setAttribute("personBean", new PersonBean(person));
            request.setAttribute("emergencyContactBean", new EmergencyContactBean(person));
        }

        request.setAttribute("personBean", person);
        request.setAttribute("emergencyContactBean", emergencyContactBean);
View Full Code Here

public class VisualizePersonalInfo extends ForwardAction {

    @Override
    public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
            throws Exception {
        PersonBean person = new PersonBean(getLoggedUser());
        EmergencyContactBean emergencyContactBean = new EmergencyContactBean(getLoggedUser());
        request.setAttribute("personBean", person);
        request.setAttribute("emergencyContactBean", emergencyContactBean);
        return super.execute(mapping, form, request, response);
    }
View Full Code Here

         * Person will not be associated or created at individual candidacy
         * creation stage. Instead we bind with an empty PersonBean.
         *
         * bean.setChoosePersonBean(new ChoosePersonBean());
         */
        bean.setPersonBean(new PersonBean());
        bean.setChoosePersonBean(new ChoosePersonBean());

        /*
         * 06/05/2009 - Also we mark the bean as an external candidacy.
         */
 
View Full Code Here

    }

    public ActionForward prepareExecuteEditCandidacyPersonalInformation(ActionMapping mapping, ActionForm actionForm,
            HttpServletRequest request, HttpServletResponse response) {
        final StandaloneIndividualCandidacyProcessBean bean = new StandaloneIndividualCandidacyProcessBean();
        bean.setPersonBean(new PersonBean(getProcess(request).getPersonalDetails()));
        request.setAttribute(getIndividualCandidacyProcessBeanName(), bean);
        return mapping.findForward("edit-candidacy-personal-information");
    }
View Full Code Here

        final StandaloneIndividualCandidacyProcessBean bean =
                new StandaloneIndividualCandidacyProcessBean((StandaloneIndividualCandidacyProcess) 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

TOP

Related Classes of org.fenixedu.academic.dto.person.PersonBean

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.