public ActionForward prepareExecuteEditCandidacyPersonalInformation( ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) { final DegreeCandidacyForGraduatedPersonIndividualProcessBean bean = new DegreeCandidacyForGraduatedPersonIndividualProcessBean(); bean.setPersonBean(new PersonBean(getProcess(request).getPersonalDetails())); request.setAttribute(getIndividualCandidacyProcessBeanName(), bean); return mapping.findForward("edit-candidacy-personal-information"); }
@Override /* * * Prepare the beans to choose a person or create a new one */ protected void prepareInformationForBindPersonToCandidacyOperation( HttpServletRequest request, IndividualCandidacyProcess process) { final DegreeCandidacyForGraduatedPersonIndividualProcessBean bean = new DegreeCandidacyForGraduatedPersonIndividualProcessBean( (DegreeCandidacyForGraduatedPersonIndividualProcess) process); bean.setCandidacyProcess(getParentProcess(request)); bean.setChoosePersonBean(new ChoosePersonBean(process.getCandidacy().getPersonalDetails())); bean.setPersonBean(new PersonBean(process.getCandidacy().getPersonalDetails())); request.setAttribute(getIndividualCandidacyProcessBeanName(), bean); }
@Override protected void setStartInformation( ActionForm form, HttpServletRequest request, HttpServletResponse response) { final DegreeCandidacyForGraduatedPersonIndividualProcessBean bean = new DegreeCandidacyForGraduatedPersonIndividualProcessBean(); bean.setCandidacyProcess(getParentProcess(request)); /* * 21/07/2009 - Now we create a person to process the payments * imediately */ bean.setChoosePersonBean(new ChoosePersonBean()); bean.setPersonBean(new PersonBean()); bean.setPrecedentDegreeInformation(new PrecedentDegreeInformationBean()); /* * 06/05/2009 - Also we mark the bean as an external candidacy. */ bean.setInternalPersonCandidacy(Boolean.TRUE); request.setAttribute(getIndividualCandidacyProcessBeanName(), bean); }