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 Constructor Description DefaultB2BCustomerAccountService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadjustPassword(UserModel currentUser, java.lang.String newUid, java.lang.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 B2BAcceleratorCartToOrderCronJobModelDaogetB2bAcceleratorCartToOrderCronJobModelDao()CartToOrderCronJobModelgetCartToOrderCronJobForCode(java.lang.String code, UserModel user)Gets the Scheduling job by codejava.util.List<? extends CartToOrderCronJobModel>getCartToOrderCronJobsForUser(UserModel user)Gets all order replenishment cron jobs for a given user.SearchPageData<OrderModel>getOrdersForJob(java.lang.String jobCode, PageableData pageableData)All orders created by a replenishment cron jobSearchPageData<CartToOrderCronJobModel>getPagedCartToOrderCronJobsForUser(UserModel user, PageableData pageableData)Gets all order replenishment cron jobs for a given user.voidsetB2bAcceleratorCartToOrderCronJobModelDao(B2BAcceleratorCartToOrderCronJobModelDao b2bAcceleratorCartToOrderCronJobModelDao)voidupdateProfile(CustomerModel customerModel, java.lang.String titleCode, java.lang.String name, java.lang.String login)Updates the current user with the given parameters-
Methods 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, 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, getTimeService, getTitles, getTokenValiditySeconds, getTypeService, getUserService, initializeEvent, internalSaveCustomer, register, registerCustomer, registerGuestForAnonymousCheckout, saveAddressEntry, setBaseSiteService, setBaseStoreService, setCommerceCommonI18NService, setCommonI18NService, setConfigurationService, setCustomerAccountDao, setCustomerEmailResolutionService, setCustomerNameStrategy, setDefaultAddressEntry, setDefaultPaymentInfo, setEventService, setFlexibleSearchService, setI18nService, setModelService, setMonthsForOrderExpiry, setPasswordEncoderService, setPasswordEncoding, setPaymentService, setSecureTokenService, setTimeService, setTokenValiditySeconds, setTypeService, setUserService, unlinkCCPaymentInfo, updatePassword
-
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, unlinkCCPaymentInfo, updatePassword
-
-
-
-
Method Detail
-
getCartToOrderCronJobForCode
public CartToOrderCronJobModel getCartToOrderCronJobForCode(java.lang.String code, UserModel user)
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
public java.util.List<? extends CartToOrderCronJobModel> getCartToOrderCronJobsForUser(UserModel user)
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
public SearchPageData<OrderModel> getOrdersForJob(java.lang.String jobCode, PageableData pageableData)
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, java.lang.String titleCode, java.lang.String name, java.lang.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
protected B2BAcceleratorCartToOrderCronJobModelDao getB2bAcceleratorCartToOrderCronJobModelDao()
-
adjustPassword
protected void adjustPassword(UserModel currentUser, java.lang.String newUid, java.lang.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
-
-