Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.Job


        qualification.setCreator(person);
        return this;
    }

    public PhdIndividualProgramProcess addJobInformation(final Person person, final JobBean bean) {
        final Job job = new Job(getPerson(), bean);
        job.setCreator(person);
        return this;
    }
View Full Code Here


        }
    }

    @Override
    protected PhdIndividualProgramProcess executeActivity(PhdIndividualProgramProcess process, User userView, Object object) {
        final Job job = (Job) object;
        if (process.getPerson().getJobsSet().contains(job)) {
            if (!canDelete(job, userView.getPerson())) {
                throw new DomainException("error.PhdIndividualProgramProcess.DeleteJobInformation.not.authorized");
            }
            job.delete();
        }
        return process;
    }
View Full Code Here

        }
    }

    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

public class EditProfessionalInformation {

    @Atomic
    public static void run(final AlumniJobBean jobBean) {

        Job job = FenixFramework.getDomainObject(jobBean.getJobId());
        job.edit(jobBean);
    }
View Full Code Here

public class CreateProfessionalInformation {

    @Atomic
    public static Job run(final AlumniJobBean bean) {

        return new Job(bean.getAlumni().getStudent().getPerson(), bean.getEmployerName(), bean.getCity(), bean.getCountry(),
                bean.getChildBusinessArea(), bean.getParentBusinessArea(), bean.getPosition(), bean.getBeginDateAsLocalDate(),
                bean.getEndDateAsLocalDate(), bean.getApplicationType(), bean.getContractType(), bean.getSalary());
    }
View Full Code Here

    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();
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.Job

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.