Package org.fenixedu.academic.domain.contacts

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


            return null;
        }
    }

    public Phone getDefaultPhone() {
        Phone defaultPhone = getPerson().getDefaultPhone();
        if (defaultPhone != null) {
            return defaultPhone;
        }
        final List<Phone> pendingPhones = getPerson().getPendingPhones();
        for (Phone phone : pendingPhones) {
View Full Code Here


    public void setDefaultPhoneNumber(final String number) {
        setDefaultPhoneNumber(number, false);
    }

    public void setDefaultPhoneNumber(final String number, boolean valid) {
        final Phone defaultPhone;
        if (hasDefaultPhone()) {
            defaultPhone = getDefaultPhone();
            defaultPhone.edit(number);
        } else {
            defaultPhone = Phone.createPhone(this, number, PartyContactType.PERSONAL, true);
        }

        if (valid) {
            defaultPhone.setValid();
        }
    }
View Full Code Here

        return partyContacts.isEmpty() ? null : (Phone) partyContacts.iterator().next();
    }

    @Deprecated
    public String getWorkPhone() {
        final Phone workPhone = getPersonWorkPhone();
        return workPhone != null ? workPhone.getNumber() : null;
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.contacts.Phone

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.