Class DefaultContactInfoService
- java.lang.Object
-
- de.hybris.platform.servicelayer.user.impl.DefaultContactInfoService
-
- All Implemented Interfaces:
ContactInfoService
public class DefaultContactInfoService extends java.lang.Object implements ContactInfoService
Default implementation of ContactInfoService.- Spring Bean ID:
- contactInfoService
-
-
Constructor Summary
Constructors Constructor Description DefaultContactInfoService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddContactInfos(UserModel user, AbstractContactInfoModel... contactInfos)Adds one or more contact info to the list of user's contact infos.AbstractContactInfoModelgetMainContactInfo(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.
-
-
-
Method Detail
-
getMainContactInfo
public AbstractContactInfoModel getMainContactInfo(UserModel user)
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
public void setMainContactInfo(UserModel user, AbstractContactInfoModel contactInfo)
Description copied from interface:ContactInfoServiceSets contact info object as main for given user.- Specified by:
setMainContactInfoin interfaceContactInfoService
-
addContactInfos
public void addContactInfos(UserModel user, AbstractContactInfoModel... contactInfos)
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
public void removeContactInfos(UserModel user, AbstractContactInfoModel... contactInfos)
Description copied from interface:ContactInfoServiceRemoves one or more contact infos from user's list of contact infos.- Specified by:
removeContactInfosin interfaceContactInfoService
-
-