Interface ContactInfoService
- All Known Implementing Classes:
DefaultContactInfoService
public interface ContactInfoService
Service for user's contact information handling.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddContactInfos(UserModel user, AbstractContactInfoModel... contactInfo) Adds one or more contact info to the list of user's contact infos.getMainContactInfo(UserModel user) Gets main contact info object for given user or null if the list of contact infos for user is empty.voidremoveContactInfos(UserModel user, AbstractContactInfoModel... contactInfo) Removes one or more contact infos from user's list of contact infos.voidsetMainContactInfo(UserModel user, AbstractContactInfoModel contactInfo) Sets contact info object as main for given user.
-
Method Details
-
getMainContactInfo
Gets main contact info object for given user or null if the list of contact infos for user is empty. -
setMainContactInfo
Sets contact info object as main for given user. -
addContactInfos
Adds one or more contact info to the list of user's contact infos. To set one of those infos as main usesetMainContactInfo(UserModel, AbstractContactInfoModel)method. -
removeContactInfos
Removes one or more contact infos from user's list of contact infos.
-