public class DefaultContactInfoService extends Object implements ContactInfoService
| Constructor and Description |
|---|
DefaultContactInfoService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addContactInfos(UserModel user,
AbstractContactInfoModel... contactInfos)
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... contactInfos)
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.
|
public AbstractContactInfoModel getMainContactInfo(UserModel user)
ContactInfoServicegetMainContactInfo in interface ContactInfoServicepublic void setMainContactInfo(UserModel user, AbstractContactInfoModel contactInfo)
ContactInfoServicesetMainContactInfo in interface ContactInfoServicepublic void addContactInfos(UserModel user, AbstractContactInfoModel... contactInfos)
ContactInfoServiceContactInfoService.setMainContactInfo(UserModel, AbstractContactInfoModel) method.addContactInfos in interface ContactInfoServicepublic void removeContactInfos(UserModel user, AbstractContactInfoModel... contactInfos)
ContactInfoServiceremoveContactInfos in interface ContactInfoServiceCopyright © 2017 SAP SE. All Rights Reserved.