public List<Phone> getPhones() throws SystemException { return PhoneLocalServiceUtil.getPhones(getCompanyId(), Contact.class.getName(), getContactId()); }
public static Phone addPhone(Organization organization) throws Exception { return PhoneLocalServiceUtil.addPhone( organization.getUserId(), organization.getModelClassName(), organization.getOrganizationId(), "0000000000", "000", _getListTypeId(ListTypeConstants.ORGANIZATION_PHONE), false, new ServiceContext()); }