Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.District


    public static ResidenceInformationForm createFromPerson(final Person person) {
        if (person.hasDefaultPhysicalAddress()) {
            final PhysicalAddress physicalAddress = person.getDefaultPhysicalAddress();
            final Country country = getCountryOfResidenceFromPhysicalAddress(physicalAddress);
            final District districtOfResidence =
                    physicalAddress.getDistrictOfResidence() != null ? District.readByName(physicalAddress
                            .getDistrictOfResidence()) : null;

            final DistrictSubdivision districtSubdivisionOfResidence;
            if (districtOfResidence != null) {
                districtSubdivisionOfResidence =
                        physicalAddress.getDistrictSubdivisionOfResidence() != null ? districtOfResidence
                                .getDistrictSubdivisionByName(physicalAddress.getDistrictSubdivisionOfResidence()) : null;
            } else {
                districtSubdivisionOfResidence = null;
            }
View Full Code Here


    @Override
    public Object provide(Object source, Object currentValue) {
        final FiliationForm filiationForm = (FiliationForm) source;
        if (filiationForm.getDistrictOfBirth() != null) {
            final District district = District.readByName(filiationForm.getDistrictOfBirth());

            if (district != null) {
                return transformToStringCollection(district);
            }
        }
View Full Code Here

TOP

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

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.