Interface ContactInfoService
-
- All Known Implementing Classes:
DefaultContactInfoService
public interface ContactInfoService
Service for user's contact information handling.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addContactInfos(UserModel user, AbstractContactInfoModel... contactInfo)
Adds one or more contact info to the list of user's contact infos.AbstractContactInfoModel
getMainContactInfo(UserModel user)
Gets main contact info object for given user or null if the list of contact infos for user is empty.void
removeContactInfos(UserModel user, AbstractContactInfoModel... contactInfo)
Removes one or more contact infos from user's list of contact infos.void
setMainContactInfo(UserModel user, AbstractContactInfoModel contactInfo)
Sets contact info object as main for given user.
-
-
-
Method Detail
-
getMainContactInfo
@Nullable AbstractContactInfoModel getMainContactInfo(UserModel user)
Gets main contact info object for given user or null if the list of contact infos for user is empty.
-
setMainContactInfo
void setMainContactInfo(UserModel user, AbstractContactInfoModel contactInfo)
Sets contact info object as main for given user.
-
addContactInfos
void addContactInfos(UserModel user, AbstractContactInfoModel... contactInfo)
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
void removeContactInfos(UserModel user, AbstractContactInfoModel... contactInfo)
Removes one or more contact infos from user's list of contact infos.
-
-