Class DefaultChineseCustomerAccountService
- java.lang.Object
-
- de.hybris.platform.commerceservices.customer.impl.DefaultCustomerAccountService
-
- de.hybris.platform.chineseprofileservices.customer.impl.DefaultChineseCustomerAccountService
-
- All Implemented Interfaces:
ChineseCustomerAccountService,CustomerAccountService
public class DefaultChineseCustomerAccountService extends DefaultCustomerAccountService implements ChineseCustomerAccountService
Implementation forChineseCustomerAccountService. Delivers main functionality for chinese Customer account.
-
-
Constructor Summary
Constructors Constructor Description DefaultChineseCustomerAccountService()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.List<MobileNumberVerificationModel>findExpiredVerificationCode(java.util.Date expiredDate)Gets all expired verification codes.java.lang.StringgenerateVerificationCode()Generates a verification code.java.util.Optional<CustomerModel>getCustomerForMobileNumber(java.lang.String mobileNumber)Finds a customer by using mobile number.java.lang.StringgetDefaultEmailLanguage()Gets the default email language.EmailLanguageStrategygetEmailLanguageStrategy()java.util.Optional<MobileNumberVerificationModel>getMobileNumberVerificationCode(java.lang.String mobileNumber)Gets mobile number verification code.protected UserDaogetUserDao()UserProfileServicesDaogetUserProfileDao()java.util.DategetVerificationCodeExpiredDate()Gets verification code expired date.protected VerificationCodeGenerationStrategygetVerificationCodeGenerationStrategy()Deprecated, for removal: This API element is subject to removal in a future version.Since 1905.protected VerificationCodeSendingStrategygetVerificationCodeSendingStrategy()Deprecated, for removal: This API element is subject to removal in a future version.Since 1905.protected VerificationCodeStrategygetVerificationCodeStrategy()booleanisVerificationCodeExpired(java.util.Date date)Checks whether the verification code is expired.voidsendVerificationCode(VerificationData data)Sends verification code.voidsendVerificationCode(java.lang.String mobileNumber, java.lang.String verificationCode)Sends verification code.voidsetEmailLanguageStrategy(EmailLanguageStrategy emailLanguageStrategy)voidsetUserDao(UserDao userDao)voidsetUserProfileDao(UserProfileServicesDao userProfileDao)voidsetVerificationCodeGenerationStrategy(VerificationCodeGenerationStrategy verificationCodeGenerationStrategy)Deprecated, for removal: This API element is subject to removal in a future version.Since 1905.voidsetVerificationCodeSendingStrategy(VerificationCodeSendingStrategy verificationCodeSendingStrategy)Deprecated, for removal: This API element is subject to removal in a future version.Since 1905.voidsetVerificationCodeStrategy(VerificationCodeStrategy verificationCodeStrategy)voidupdateMobileNumber(CustomerModel customerModel)Updates customer's mobile number.-
Methods inherited from class de.hybris.platform.commerceservices.customer.impl.DefaultCustomerAccountService
addPaymentInfo, adjustPassword, changePassword, changeUid, checkUidUniqueness, clearDefaultAddressEntry, closeAccount, convertGuestToCustomer, createPaymentSubscription, deleteAddressEntry, deleteCCPaymentInfo, fillValuesForCustomerInfo, forgottenPassword, generateCustomerId, getAddressBookDeliveryEntries, getAddressBookEntries, getAddressForCode, getAllAddressEntries, getBaseSiteService, getBaseStoreService, getCommerceCommonI18NService, getCommerceConsentService, getCommonI18NService, getConfigurationService, getCreditCardPaymentInfoForCode, getCreditCardPaymentInfos, getCurrency, getCustomerAccountDao, getCustomerEmailResolutionService, getCustomerNameStrategy, getDefaultAddress, getEventService, getFlexibleSearchService, getGuestOrderForGUID, getI18nService, getMaskedCardNumber, getModelService, getMonthsForOrderExpiry, getOrderDetailsForGUID, getOrderForCode, getOrderForCode, getOrderList, getOrderList, getPasswordEncoderService, getPasswordEncoding, getPaymentService, getReturnRequestsByCustomerAndStore, getSecureTokenService, getSessionService, getTimeService, getTitles, getTokenValiditySeconds, getTypeService, getUserService, initializeEvent, internalSaveCustomer, populateAndGetSessionConsentsToRegisteredUser, register, registerCustomer, registerGuestForAnonymousCheckout, saveAddressEntry, setBaseSiteService, setBaseStoreService, setCommerceCommonI18NService, setCommerceConsentService, setCommonI18NService, setConfigurationService, setCustomerAccountDao, setCustomerEmailResolutionService, setCustomerNameStrategy, setDefaultAddressEntry, setDefaultPaymentInfo, setEventService, setFlexibleSearchService, setI18nService, setModelService, setMonthsForOrderExpiry, setPasswordEncoderService, setPasswordEncoding, setPaymentService, setPopulatingConsentsInSessionEnabled, setSecureTokenService, setSessionService, setTimeService, setTokenValiditySeconds, setTypeService, setUserService, unlinkCCPaymentInfo, updatePassword, updateProfile
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.commerceservices.customer.CustomerAccountService
changePassword, changeUid, clearDefaultAddressEntry, closeAccount, convertGuestToCustomer, createPaymentSubscription, deleteAddressEntry, deleteCCPaymentInfo, forgottenPassword, getAddressBookDeliveryEntries, getAddressBookEntries, getAddressForCode, getAllAddressEntries, getCreditCardPaymentInfoForCode, getCreditCardPaymentInfos, getDefaultAddress, getGuestOrderForGUID, getOrderDetailsForGUID, getOrderForCode, getOrderForCode, getOrderList, getOrderList, getReturnRequestsByCustomerAndStore, getTitles, register, registerGuestForAnonymousCheckout, saveAddressEntry, setDefaultAddressEntry, setDefaultPaymentInfo, setPopulatingConsentsInSessionEnabled, unlinkCCPaymentInfo, updatePassword, updateProfile
-
-
-
-
Method Detail
-
getDefaultEmailLanguage
public java.lang.String getDefaultEmailLanguage()
Description copied from interface:ChineseCustomerAccountServiceGets the default email language.- Specified by:
getDefaultEmailLanguagein interfaceChineseCustomerAccountService- Returns:
- default email language
-
getMobileNumberVerificationCode
public java.util.Optional<MobileNumberVerificationModel> getMobileNumberVerificationCode(java.lang.String mobileNumber)
Description copied from interface:ChineseCustomerAccountServiceGets mobile number verification code.- Specified by:
getMobileNumberVerificationCodein interfaceChineseCustomerAccountService- Parameters:
mobileNumber- the number to query- Returns:
- an Optional containing the mobile number and verification code.
-
isVerificationCodeExpired
public boolean isVerificationCodeExpired(java.util.Date date)
Description copied from interface:ChineseCustomerAccountServiceChecks whether the verification code is expired.- Specified by:
isVerificationCodeExpiredin interfaceChineseCustomerAccountService- Parameters:
date- the verification code generate time- Returns:
- true if the verification code is expired
-
findExpiredVerificationCode
public java.util.List<MobileNumberVerificationModel> findExpiredVerificationCode(java.util.Date expiredDate)
Description copied from interface:ChineseCustomerAccountServiceGets all expired verification codes.- Specified by:
findExpiredVerificationCodein interfaceChineseCustomerAccountService- Parameters:
expiredDate- expired date- Returns:
- all expired verification codes
-
getVerificationCodeExpiredDate
public java.util.Date getVerificationCodeExpiredDate()
Description copied from interface:ChineseCustomerAccountServiceGets verification code expired date.- Specified by:
getVerificationCodeExpiredDatein interfaceChineseCustomerAccountService- Returns:
- verification code expired date
-
generateVerificationCode
public java.lang.String generateVerificationCode()
Description copied from interface:ChineseCustomerAccountServiceGenerates a verification code.- Specified by:
generateVerificationCodein interfaceChineseCustomerAccountService- Returns:
- Verification Code
-
sendVerificationCode
public void sendVerificationCode(VerificationData data)
Description copied from interface:ChineseCustomerAccountServiceSends verification code.- Specified by:
sendVerificationCodein interfaceChineseCustomerAccountService- Parameters:
data- the data that contains sending info.
-
sendVerificationCode
public void sendVerificationCode(java.lang.String mobileNumber, java.lang.String verificationCode)Description copied from interface:ChineseCustomerAccountServiceSends verification code.- Specified by:
sendVerificationCodein interfaceChineseCustomerAccountService- Parameters:
mobileNumber- the mobile number to send the verification codeverificationCode- the verification code for the mobile number
-
updateMobileNumber
public void updateMobileNumber(CustomerModel customerModel)
Description copied from interface:ChineseCustomerAccountServiceUpdates customer's mobile number.- Specified by:
updateMobileNumberin interfaceChineseCustomerAccountService- Parameters:
customerModel- customer to be updated
-
getCustomerForMobileNumber
public java.util.Optional<CustomerModel> getCustomerForMobileNumber(java.lang.String mobileNumber)
Description copied from interface:ChineseCustomerAccountServiceFinds a customer by using mobile number.- Specified by:
getCustomerForMobileNumberin interfaceChineseCustomerAccountService- Parameters:
mobileNumber- the number to query- Returns:
- an Optional containing the customer, or an empty Optional if no customer is found.
-
getVerificationCodeGenerationStrategy
@Deprecated(since="1905", forRemoval=true) protected VerificationCodeGenerationStrategy getVerificationCodeGenerationStrategy()Deprecated, for removal: This API element is subject to removal in a future version.Since 1905. UseVerificationCodeStrategyinstead.
-
setVerificationCodeGenerationStrategy
@Deprecated(since="1905", forRemoval=true) public void setVerificationCodeGenerationStrategy(VerificationCodeGenerationStrategy verificationCodeGenerationStrategy)Deprecated, for removal: This API element is subject to removal in a future version.Since 1905. UseVerificationCodeStrategyinstead.
-
getVerificationCodeSendingStrategy
@Deprecated(since="1905", forRemoval=true) protected VerificationCodeSendingStrategy getVerificationCodeSendingStrategy()Deprecated, for removal: This API element is subject to removal in a future version.Since 1905. UseVerificationCodeStrategyinstead.
-
setVerificationCodeSendingStrategy
@Deprecated(since="1905", forRemoval=true) public void setVerificationCodeSendingStrategy(VerificationCodeSendingStrategy verificationCodeSendingStrategy)Deprecated, for removal: This API element is subject to removal in a future version.Since 1905. UseVerificationCodeStrategyinstead.
-
getUserDao
protected UserDao getUserDao()
-
setUserDao
public void setUserDao(UserDao userDao)
-
getVerificationCodeStrategy
protected VerificationCodeStrategy getVerificationCodeStrategy()
-
setVerificationCodeStrategy
public void setVerificationCodeStrategy(VerificationCodeStrategy verificationCodeStrategy)
-
setUserProfileDao
public void setUserProfileDao(UserProfileServicesDao userProfileDao)
-
getUserProfileDao
public UserProfileServicesDao getUserProfileDao()
-
getEmailLanguageStrategy
public EmailLanguageStrategy getEmailLanguageStrategy()
-
setEmailLanguageStrategy
public void setEmailLanguageStrategy(EmailLanguageStrategy emailLanguageStrategy)
-
-