Class DefaultB2BCustomerAccountService
java.lang.Object
de.hybris.platform.commerceservices.customer.impl.DefaultCustomerAccountService
de.hybris.platform.b2bacceleratorservices.customer.impl.DefaultB2BCustomerAccountService
- All Implemented Interfaces:
B2BCustomerAccountService,CustomerAccountService
public class DefaultB2BCustomerAccountService
extends DefaultCustomerAccountService
implements B2BCustomerAccountService
Default implementation of specific B2B customer account management services.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidadjustPassword(UserModel currentUser, String newUid, String currentPassword) Adjusts a given current userPrincipalModel.UIDwith a newUid value unless the user with newUid does not exists and password for current user matches given currentPassword.protected B2BAcceleratorCartToOrderCronJobModelDaogetCartToOrderCronJobForCode(String code, UserModel user) Gets the Scheduling job by codeList<? extends CartToOrderCronJobModel>Gets all order replenishment cron jobs for a given user.getOrdersForJob(String jobCode, PageableData pageableData) All orders created by a replenishment cron jobgetPagedCartToOrderCronJobsForUser(UserModel user, PageableData pageableData) Gets all order replenishment cron jobs for a given user.voidsetB2bAcceleratorCartToOrderCronJobModelDao(B2BAcceleratorCartToOrderCronJobModelDao b2bAcceleratorCartToOrderCronJobModelDao) voidupdateProfile(CustomerModel customerModel, String titleCode, String name, String login) Updates the current user with the given parametersMethods inherited from class de.hybris.platform.commerceservices.customer.impl.DefaultCustomerAccountService
addPaymentInfo, 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, updatePasswordMethods 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
-
Constructor Details
-
DefaultB2BCustomerAccountService
public DefaultB2BCustomerAccountService()
-
-
Method Details
-
getCartToOrderCronJobForCode
Description copied from interface:B2BCustomerAccountServiceGets the Scheduling job by code- Specified by:
getCartToOrderCronJobForCodein interfaceB2BCustomerAccountService- Parameters:
code- unique job identifieruser- a customer assigned to the cart- Returns:
- the
CartToOrderCronJobModelidentified by code
-
getCartToOrderCronJobsForUser
Description copied from interface:B2BCustomerAccountServiceGets all order replenishment cron jobs for a given user.- Specified by:
getCartToOrderCronJobsForUserin interfaceB2BCustomerAccountService- Parameters:
user- user object- Returns:
- replenishment cron jobs created by a user.
-
getPagedCartToOrderCronJobsForUser
public SearchPageData<CartToOrderCronJobModel> getPagedCartToOrderCronJobsForUser(UserModel user, PageableData pageableData) Description copied from interface:B2BCustomerAccountServiceGets all order replenishment cron jobs for a given user.- Specified by:
getPagedCartToOrderCronJobsForUserin interfaceB2BCustomerAccountService- Parameters:
user- user objectpageableData- pagination info- Returns:
- replenishment cron jobs created by a user.
-
getOrdersForJob
Description copied from interface:B2BCustomerAccountServiceAll orders created by a replenishment cron job- Specified by:
getOrdersForJobin interfaceB2BCustomerAccountService- Parameters:
jobCode- unique cron job idpageableData- pagination info- Returns:
- orders created by a replenishment cron job
-
updateProfile
public void updateProfile(CustomerModel customerModel, String titleCode, String name, String login) throws DuplicateUidException Description copied from interface:CustomerAccountServiceUpdates the current user with the given parameters- Specified by:
updateProfilein interfaceCustomerAccountService- Overrides:
updateProfilein classDefaultCustomerAccountService- Parameters:
customerModel- the customer to updatetitleCode- the code for the title to setname- the full name to set on the customerlogin- the UID to set on the customer- Throws:
DuplicateUidException- if the email is not unique
-
setB2bAcceleratorCartToOrderCronJobModelDao
public void setB2bAcceleratorCartToOrderCronJobModelDao(B2BAcceleratorCartToOrderCronJobModelDao b2bAcceleratorCartToOrderCronJobModelDao) -
getB2bAcceleratorCartToOrderCronJobModelDao
-
adjustPassword
protected void adjustPassword(UserModel currentUser, String newUid, String currentPassword) throws PasswordMismatchException Description copied from class:DefaultCustomerAccountServiceAdjusts a given current userPrincipalModel.UIDwith a newUid value unless the user with newUid does not exists and password for current user matches given currentPassword.- Overrides:
adjustPasswordin classDefaultCustomerAccountService- Throws:
PasswordMismatchException
-