Package org.fenixedu.academic.domain.contacts

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


        }
        return null;
    }

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


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

    public void setDefaultMobilePhoneNumber(final String number, final boolean valid) {
        MobilePhone mobilePhone;
        if (hasDefaultMobilePhone()) {
            mobilePhone = getDefaultMobilePhone();
            mobilePhone.edit(number);
        } else {
            mobilePhone = MobilePhone.createMobilePhone(this, number, PartyContactType.PERSONAL, true);
        }

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

TOP

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

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.