public Phone getPhone(Integer candidateId) throws IdException { daoValidator.idValidate(candidateId); logger.debug("Returning phone of candidate with id: %s.", candidateId); return contactsMapper.getPhone(candidateId); }
public void updatePhone(Phone phone) throws PhoneException { daoValidator.phoneValidate(phone); logger.debug("Updating phone with id: %s.", phone.getPhoneId()); contactsMapper.updatePhone(phone); }
public void insertAddress(Address address) throws AddressException { daoValidator.addressValidator(address); logger.debug("Inserting address with id: %s.", address.getAddressId()); contactsMapper.insertAddress(address); }
public void removeAddress(Integer candidateId) throws IdException { daoValidator.idValidate(candidateId); logger.debug("Removing address of candidate: %s.", candidateId); contactsMapper.removeAddress(candidateId); }
public Address getAddress(Integer candidateId) throws IdException { daoValidator.idValidate(candidateId); logger.debug("Returning address of candidate with id: %s.", candidateId); return contactsMapper.getAddress(candidateId); }
public void insertEmail(Email email) throws EmailException { daoValidator.emailValidate(email); logger.debug("Inserting email with id: %s.", email.getEmailId()); contactsMapper.insertEmail(email); }
public Email getEmail(Integer candidateId) throws IdException { daoValidator.idValidate(candidateId); logger.debug("Returning email of candidate with id: %s.", candidateId); return contactsMapper.getEmail(candidateId); }
public List<Contact> getAllContacts(Integer candidateId) throws IdException { daoValidator.idValidate(candidateId); logger.debug("Returning all contacts of candidate with id: %s.", candidateId); return contactsMapper.getAllContacts(candidateId); }
public void insertIMS(IMS ims) throws IMSException { daoValidator.imsValidate(ims); logger.debug("Inserting IMS with id: %s.", ims.getImsId()); contactsMapper.insertIMS(ims); }