Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.Person.edit()


            throw new DomainException("error.bind.candidacy.internal");
        }

        Person selectedPerson = bean.getPerson();
        if (selectedPerson != null) {
            selectedPerson.edit(this.getPersonalDetails());
            this.setPersonalDetails(new IndividualCandidacyInternalPersonDetails(this, selectedPerson));
        } else {
            selectedPerson = new Person(this.getPersonalDetails());
            this.setPersonalDetails(new IndividualCandidacyInternalPersonDetails(this, selectedPerson));
        }
View Full Code Here


    @Override
    protected PhdIndividualProgramProcess executeActivity(PhdIndividualProgramProcess process, User userView, Object object) {

        final Person person = process.getPerson();
        if (process.isAllowedToManageProcess(userView)) {
            person.edit((PersonBean) object);
        } else if (person.getUser() == null && person.getStudent() == null && process.getCandidacyProcess().isPublicCandidacy()) {
            // assuming public candidacy
            person.editPersonWithExternalData((PersonBean) object, true);
        }
        return process;
View Full Code Here

    private static Person getPerson(PersonBean personBean) {
        Person person = null;
        if (personBean.getPerson() != null) {
            person = personBean.getPerson();
            person.edit(personBean);
        } else {
            // create person
            person = new Person(personBean);
        }
        return person;
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.