Examples of AlumniJobBean


Examples of org.fenixedu.academic.dto.alumni.AlumniJobBean

    }

    public ActionForward prepareProfessionalInformationCreation(ActionMapping mapping, ActionForm actionForm,
            HttpServletRequest request, HttpServletResponse response) throws Exception {

        request.setAttribute("jobCreateBean", new AlumniJobBean(getAlumniFromLoggedPerson(request)));
        return mapping.findForward("manageProfessionalInformation");
    }
View Full Code Here

Examples of org.fenixedu.academic.dto.alumni.AlumniJobBean

    }

    public ActionForward createBusinessAreaPostback(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws Exception {

        AlumniJobBean viewStateBean = (AlumniJobBean) getObjectFromViewState("jobCreateBean");
        viewStateBean.updateSchema();
        RenderUtils.invalidateViewState("jobCreateBean");
        request.setAttribute("jobCreateBean", viewStateBean);
        return mapping.findForward("manageProfessionalInformation");
    }
View Full Code Here

Examples of org.fenixedu.academic.dto.alumni.AlumniJobBean

    }

    public ActionForward updateBusinessAreaPostback(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws Exception {

        AlumniJobBean viewStateBean = (AlumniJobBean) getObjectFromViewState("jobUpdateBean");
        viewStateBean.updateSchema();
        RenderUtils.invalidateViewState("jobUpdateBean");
        request.setAttribute("jobUpdateBean", viewStateBean);
        return mapping.findForward("manageProfessionalInformation");
    }
View Full Code Here

Examples of org.fenixedu.academic.dto.alumni.AlumniJobBean

    }

    public ActionForward prepareUpdateProfessionalInformation(ActionMapping mapping, ActionForm actionForm,
            HttpServletRequest request, HttpServletResponse response) throws Exception {

        request.setAttribute("jobUpdateBean", new AlumniJobBean(getAlumniFromLoggedPerson(request), getJob(request)));
        return mapping.findForward("manageProfessionalInformation");
    }
View Full Code Here

Examples of org.fenixedu.academic.dto.alumni.AlumniJobBean

    @Override
    public Object provide(Object source, Object currentValue) {

        if (source.getClass().equals(AlumniJobBean.class)) {
            final AlumniJobBean jobBean = (AlumniJobBean) source;
            if (jobBean.getParentBusinessArea() != null) {
                return jobBean.getParentBusinessArea().getChildAreasSet();
            }

        } else if (source.getClass().equals(AlumniPublicAccessBean.class)) {
            final AlumniPublicAccessBean publicBean = (AlumniPublicAccessBean) source;
            if (publicBean.getJobBean().getParentBusinessArea() != null) {
                return publicBean.getJobBean().getParentBusinessArea().getChildAreasSet();
            }

        } else if (source.getClass().equals(JobBean.class)) {
            final JobBean jobBean = (JobBean) source;
            if (jobBean.hasParentBusinessArea()) {
                return jobBean.getParentBusinessArea().getChildAreasSet();
            }
        }

        return Collections.emptyList();
    }
View Full Code Here

Examples of org.fenixedu.academic.dto.alumni.AlumniJobBean

    private void initJob(Alumni alumni) {
        if (alumni.hasAnyJobs()) {
            Job job = alumni.getLastJob();
            setCurrentJob(job);
            setJobBean(new AlumniJobBean(alumni, job));
        } else {
            setJobBean(new AlumniJobBean(alumni));
        }
    }
View Full Code Here

Examples of org.fenixedu.academic.dto.alumni.AlumniJobBean

    }

    private static void processAlumniJob(final AlumniPublicAccessBean alumniBean) {

        if (alumniBean.getCurrentJob() == null) {
            final AlumniJobBean jobBean = alumniBean.getJobBean();
            new Job(jobBean.getAlumni().getStudent().getPerson(), jobBean.getEmployerName(), jobBean.getCity(),
                    jobBean.getCountry(), jobBean.getChildBusinessArea(), jobBean.getParentBusinessArea(), jobBean.getPosition(),
                    jobBean.getBeginDateAsLocalDate(), jobBean.getEndDateAsLocalDate(), jobBean.getApplicationType(),
                    jobBean.getContractType(), jobBean.getSalary());
        } else {
            final AlumniJobBean jobBean = alumniBean.getJobBean();
            alumniBean.getCurrentJob().setEmployerName(jobBean.getEmployerName());
            alumniBean.getCurrentJob().setCity(jobBean.getCity());
            alumniBean.getCurrentJob().setCountry(jobBean.getCountry());
            alumniBean.getCurrentJob().setBusinessArea(jobBean.getChildBusinessArea());
            alumniBean.getCurrentJob().setParentBusinessArea(jobBean.getParentBusinessArea());
            alumniBean.getCurrentJob().setPosition(jobBean.getPosition());
            alumniBean.getCurrentJob().setBeginDate(jobBean.getBeginDateAsLocalDate());
            alumniBean.getCurrentJob().setEndDate(jobBean.getEndDateAsLocalDate());
            alumniBean.getCurrentJob().setJobApplicationType(jobBean.getApplicationType());
            alumniBean.getCurrentJob().setContractType(jobBean.getContractType());
            alumniBean.getCurrentJob().setSalary(jobBean.getSalary());

        }
    }
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.