Class DefaultContactInfoService
java.lang.Object
de.hybris.platform.servicelayer.user.impl.DefaultContactInfoService
- All Implemented Interfaces:
ContactInfoService
Default implementation of ContactInfoService.
- Spring Bean ID:
- contactInfoService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContactInfos(UserModel user, AbstractContactInfoModel... contactInfos) 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... contactInfos) 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.
-
Constructor Details
-
DefaultContactInfoService
public DefaultContactInfoService()
-
-
Method Details
-
getMainContactInfo
Description copied from interface:ContactInfoServiceGets main contact info object for given user or null if the list of contact infos for user is empty.- Specified by:
getMainContactInfoin interfaceContactInfoService
-
setMainContactInfo
Description copied from interface:ContactInfoServiceSets contact info object as main for given user.- Specified by:
setMainContactInfoin interfaceContactInfoService
-
addContactInfos
Description copied from interface:ContactInfoServiceAdds one or more contact info to the list of user's contact infos. To set one of those infos as main useContactInfoService.setMainContactInfo(UserModel, AbstractContactInfoModel)method.- Specified by:
addContactInfosin interfaceContactInfoService
-
removeContactInfos
Description copied from interface:ContactInfoServiceRemoves one or more contact infos from user's list of contact infos.- Specified by:
removeContactInfosin interfaceContactInfoService
-