Examples of PhysicalAddressData


Examples of org.fenixedu.academic.domain.contacts.PhysicalAddressData

        this.setIdDocumentType(candidacyPersonalDetails.getIdDocumentType());
        this.setGivenNames(candidacyPersonalDetails.getGivenNames());
        this.setFamilyNames(candidacyPersonalDetails.getFamilyNames());
        this.setSocialSecurityNumber(candidacyPersonalDetails.getSocialSecurityNumber());

        final PhysicalAddressData physicalAddressData =
                new PhysicalAddressData(candidacyPersonalDetails.getAddress(), candidacyPersonalDetails.getAreaCode(), "",
                        candidacyPersonalDetails.getArea(), "", "", "", candidacyPersonalDetails.getCountryOfResidence());
        PhysicalAddress.createPhysicalAddress(this, physicalAddressData, PartyContactType.PERSONAL, true);
        Phone.createPhone(this, candidacyPersonalDetails.getTelephoneContact(), PartyContactType.PERSONAL, true);
        EmailAddress.createEmailAddress(this, candidacyPersonalDetails.getEmail(), PartyContactType.PERSONAL, true);
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.contacts.PhysicalAddressData

        this.setGender(candidacyExternalDetails.getGender());
        this.setGivenNames(candidacyExternalDetails.getGivenNames());
        this.setFamilyNames(candidacyExternalDetails.getFamilyNames());
        this.setSocialSecurityNumber(candidacyExternalDetails.getSocialSecurityNumber());

        final PhysicalAddressData physicalAddressData =
                new PhysicalAddressData(candidacyExternalDetails.getAddress(), candidacyExternalDetails.getAreaCode(),
                        getAreaOfAreaCode(), candidacyExternalDetails.getArea(), getParishOfResidence(),
                        getDistrictSubdivisionOfResidence(), getDistrictOfResidence(),
                        candidacyExternalDetails.getCountryOfResidence());
        setDefaultPhysicalAddressData(physicalAddressData);
        setDefaultPhoneNumber(candidacyExternalDetails.getTelephoneContact());
View Full Code Here

Examples of org.fenixedu.academic.domain.contacts.PhysicalAddressData

        setNameOfFather(valueToUpdateIfNewNotNull(getNameOfFather(), infoPerson.getNomePai()));
        setSocialSecurityNumber(valueToUpdateIfNewNotNull(getSocialSecurityNumber(), infoPerson.getNumContribuinte()));
        setProfession(valueToUpdateIfNewNotNull(getProfession(), infoPerson.getProfissao()));
        setGender((Gender) valueToUpdateIfNewNotNull(getGender(), infoPerson.getSexo()));

        final PhysicalAddressData data = new PhysicalAddressData();
        data.setAddress(valueToUpdateIfNewNotNull(getAddress(), infoPerson.getMorada()));
        data.setAreaCode(valueToUpdateIfNewNotNull(getAreaCode(), infoPerson.getCodigoPostal()));
        data.setAreaOfAreaCode(valueToUpdateIfNewNotNull(getAreaOfAreaCode(), infoPerson.getLocalidadeCodigoPostal()));
        data.setArea(valueToUpdateIfNewNotNull(getArea(), infoPerson.getLocalidade()));
        data.setParishOfResidence(valueToUpdateIfNewNotNull(getParishOfResidence(), infoPerson.getFreguesiaMorada()));
        data.setDistrictSubdivisionOfResidence(valueToUpdateIfNewNotNull(getDistrictSubdivisionOfResidence(),
                infoPerson.getConcelhoMorada()));
        data.setDistrictOfResidence(valueToUpdateIfNewNotNull(getDistrictOfResidence(), infoPerson.getDistritoMorada()));
        data.setCountryOfResidence(getCountryOfResidence());
        setDefaultPhysicalAddressData(data);

        if (!hasAnyPartyContact(Phone.class)) {
            Phone.createPhone(this, infoPerson.getTelefone(), PartyContactType.PERSONAL, true);
            Phone.createPhone(this, infoPerson.getWorkPhone(), PartyContactType.WORK, true);
View Full Code Here

Examples of org.fenixedu.academic.domain.contacts.PhysicalAddressData

    }

    private void setSchoolTimeAddress(final Person person) {
        if (getResidenceInformationForm().getDislocatedFromPermanentResidence()
                && getResidenceInformationForm().isSchoolTimeAddressComplete()) {
            final PhysicalAddressData physicalAddressData =
                    new PhysicalAddressData(getResidenceInformationForm().getSchoolTimeAddress(), getResidenceInformationForm()
                            .getSchoolTimeAreaCode(), getResidenceInformationForm().getSchoolTimeAreaOfAreaCode(),
                            getResidenceInformationForm().getSchoolTimeArea(), getResidenceInformationForm()
                                    .getSchoolTimeParishOfResidence(), getResidenceInformationForm()
                                    .getSchoolTimeDistrictSubdivisionOfResidence().getName(), getResidenceInformationForm()
                                    .getSchoolTimeDistrictSubdivisionOfResidence().getDistrict().getName(), Country.readDefault());
View Full Code Here

Examples of org.fenixedu.academic.domain.contacts.PhysicalAddressData

                getResidenceInformationForm().getDistrictSubdivisionOfResidence() != null ? getResidenceInformationForm()
                        .getDistrictSubdivisionOfResidence().getName() : null;
        String districtOfResidence =
                getResidenceInformationForm().getDistrictSubdivisionOfResidence().getDistrict() != null ? getResidenceInformationForm()
                        .getDistrictSubdivisionOfResidence().getDistrict().getName() : null;
        final PhysicalAddressData physicalAddressData =
                new PhysicalAddressData(getResidenceInformationForm().getAddress(), getResidenceInformationForm().getAreaCode(),
                        getResidenceInformationForm().getAreaOfAreaCode(), getResidenceInformationForm().getArea(),
                        getResidenceInformationForm().getParishOfResidence(), districtSubdivisionOfResidence,
                        districtOfResidence, getResidenceInformationForm().getCountryOfResidence());
        person.setDefaultPhysicalAddressData(physicalAddressData, true);
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.contacts.PhysicalAddressData

    @Override
    @Atomic
    public Boolean edit() {
        final boolean isValueChanged = super.edit();
        if (isValueChanged) {
            ((PhysicalAddress) getContact()).edit(new PhysicalAddressData(getAddress(), getAreaCode(), getAreaOfAreaCode(),
                    getArea(), getParishOfResidence(), getDistrictSubdivisionOfResidence(), getDistrictOfResidence(),
                    getCountryOfResidence()));
        }
        return isValueChanged;
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.contacts.PhysicalAddressData

    }

    @Override
    public PartyContact createNewContact() {
        check(this, RolePredicates.PARTY_CONTACT_BEAN_PREDICATE);
        return PhysicalAddress.createPhysicalAddress(getParty(), new PhysicalAddressData(getAddress(), getAreaCode(),
                getAreaOfAreaCode(), getArea(), getParishOfResidence(), getDistrictSubdivisionOfResidence(),
                getDistrictOfResidence(), getCountryOfResidence()), getType(), getDefaultContact());
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.contacts.PhysicalAddressData

        Collections.sort(result, PhysicalAddress.COMPARATOR_BY_ADDRESS);
        return result;
    }

    public PhysicalAddressData getPhysicalAddressData() {
        return new PhysicalAddressData(getAddress(), getAreaCode(), getAreaOfAreaCode(), getArea(), getParishOfResidence(),
                getDistrictSubdivisionOfResidence(), getDistrictOfResidence(), getCountryOfResidence());
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.contacts.PhysicalAddressData

    public void setInfoTeacher(InfoTeacher infoTeacher) {
        this.infoTeacher = infoTeacher;
    }

    public PhysicalAddressData getPhysicalAddressData() {
        return new PhysicalAddressData(getMorada(), getCodigoPostal(), getLocalidadeCodigoPostal(), getLocalidade(),
                getFreguesiaMorada(), getConcelhoMorada(), getDistritoMorada(), null);
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.contacts.PhysicalAddressData

    private static void processAlumniAddress(final AlumniPublicAccessBean alumniBean, final Person person) {

        final AlumniAddressBean addressBean = alumniBean.getAddressBean();
        if (alumniBean.getCurrentPhysicalAddress() == null) {
            PhysicalAddress.createPhysicalAddress(person,
                    new PhysicalAddressData(addressBean.getAddress(), addressBean.getAreaCode(), addressBean.getAreaOfAreaCode(),
                            null), PartyContactType.PERSONAL, false);
        } else {
            PhysicalAddress address = alumniBean.getCurrentPhysicalAddress();
            address.setAddress(addressBean.getAddress());
            address.setAreaCode(addressBean.getAreaCode());
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.