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 for
ChineseCustomerAccountService. Delivers main functionality for chinese Customer account.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultChineseCustomerAccountService(List<UserIdDecorationStrategy> userIdDecorationStrategies) Constructor of DefaultChineseCustomerAccountService -
Method Summary
Modifier and TypeMethodDescriptionprotected StringdecorateMobileNumber(String mobileNumber) findExpiredVerificationCode(Date expiredDate) Gets all expired verification codes.Generates a verification code.getCustomerForMobileNumber(String mobileNumber) Finds a customer by using mobile number.Gets the default email language.getMobileNumberVerificationCode(String mobileNumber) Gets mobile number verification code.protected UserDaoGets verification code expired date.protected VerificationCodeGenerationStrategyDeprecated, for removal: This API element is subject to removal in a future version.Since 1905.protected VerificationCodeSendingStrategyDeprecated, for removal: This API element is subject to removal in a future version.Since 1905.protected VerificationCodeStrategybooleanChecks whether the verification code is expired.voidSends verification code.voidsendVerificationCode(String mobileNumber, 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, getDelayTime, 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, updateProfileMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
Constructor Details
-
DefaultChineseCustomerAccountService
public DefaultChineseCustomerAccountService(List<UserIdDecorationStrategy> userIdDecorationStrategies) Constructor of DefaultChineseCustomerAccountService- Parameters:
userIdDecorationStrategies- user ID decoration strategy list
-
-
Method Details
-
getDefaultEmailLanguage
Description copied from interface:ChineseCustomerAccountServiceGets the default email language.- Specified by:
getDefaultEmailLanguagein interfaceChineseCustomerAccountService- Returns:
- default email language
-
getMobileNumberVerificationCode
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
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
Description copied from interface:ChineseCustomerAccountServiceGets all expired verification codes.- Specified by:
findExpiredVerificationCodein interfaceChineseCustomerAccountService- Parameters:
expiredDate- expired date- Returns:
- all expired verification codes
-
getVerificationCodeExpiredDate
Description copied from interface:ChineseCustomerAccountServiceGets verification code expired date.- Specified by:
getVerificationCodeExpiredDatein interfaceChineseCustomerAccountService- Returns:
- verification code expired date
-
generateVerificationCode
Description copied from interface:ChineseCustomerAccountServiceGenerates a verification code.- Specified by:
generateVerificationCodein interfaceChineseCustomerAccountService- Returns:
- Verification Code
-
sendVerificationCode
Description copied from interface:ChineseCustomerAccountServiceSends verification code.- Specified by:
sendVerificationCodein interfaceChineseCustomerAccountService- Parameters:
data- the data that contains sending info.
-
sendVerificationCode
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
Description copied from interface:ChineseCustomerAccountServiceUpdates customer's mobile number.- Specified by:
updateMobileNumberin interfaceChineseCustomerAccountService- Parameters:
customerModel- customer to be updated
-
getCustomerForMobileNumber
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.
-
decorateMobileNumber
-
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
-
setUserDao
-
getVerificationCodeStrategy
-
setVerificationCodeStrategy
-
setUserProfileDao
-
getUserProfileDao
-
getEmailLanguageStrategy
-
setEmailLanguageStrategy
-
getUserIdDecorationStrategies
-