PhoneService

In order to init PhoneService bean need to use - Imcms.getServices().getManagedBean(PhoneService.class)

Use API

void updateUserPhones(List<Phone> phones, int userId);

List<Phone> getUserPhones(int userId);

Fields Phone

  1. Integer phoneId;

  2. String number;

  3. User user;

  4. PhoneTypeDTO phoneType;

Fields PhoneTypeDTO

  1. Integer id;

  2. String name;

PhoneTypes #. OTHER(0, “Other”), #. HOME(1, “Home”), #. WORK(2, “Work”), #. MOBILE(3, “Mobile”), #. FAX(4, “Fax”)