public class DefaultB2BCustomerAccountService extends DefaultCustomerAccountService implements B2BCustomerAccountService
| Constructor and Description |
|---|
DefaultB2BCustomerAccountService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
adjustPassword(UserModel currentUser,
java.lang.String newUid,
java.lang.String currentPassword)
Adjusts a given current user
PrincipalModel.UID with a newUid value unless the user with newUid does not exists
and password for current user matches given currentPassword. |
protected B2BAcceleratorCartToOrderCronJobModelDao |
getB2bAcceleratorCartToOrderCronJobModelDao() |
CartToOrderCronJobModel |
getCartToOrderCronJobForCode(java.lang.String code,
UserModel user)
Gets the Scheduling job by code
|
java.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 job
|
SearchPageData<CartToOrderCronJobModel> |
getPagedCartToOrderCronJobsForUser(UserModel user,
PageableData pageableData)
Gets all order replenishment cron jobs for a given user.
|
void |
setB2bAcceleratorCartToOrderCronJobModelDao(B2BAcceleratorCartToOrderCronJobModelDao b2bAcceleratorCartToOrderCronJobModelDao) |
void |
updateProfile(CustomerModel customerModel,
java.lang.String titleCode,
java.lang.String name,
java.lang.String login)
Updates the current user with the given parameters
|
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, updatePasswordclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangePassword, 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, updatePasswordpublic CartToOrderCronJobModel getCartToOrderCronJobForCode(java.lang.String code, UserModel user)
B2BCustomerAccountServicegetCartToOrderCronJobForCode in interface B2BCustomerAccountServicecode - unique job identifieruser - a customer assigned to the cartCartToOrderCronJobModel identified by codepublic java.util.List<? extends CartToOrderCronJobModel> getCartToOrderCronJobsForUser(UserModel user)
B2BCustomerAccountServicegetCartToOrderCronJobsForUser in interface B2BCustomerAccountServiceuser - user objectpublic SearchPageData<CartToOrderCronJobModel> getPagedCartToOrderCronJobsForUser(UserModel user, PageableData pageableData)
B2BCustomerAccountServicegetPagedCartToOrderCronJobsForUser in interface B2BCustomerAccountServiceuser - user objectpageableData - pagination infopublic SearchPageData<OrderModel> getOrdersForJob(java.lang.String jobCode, PageableData pageableData)
B2BCustomerAccountServicegetOrdersForJob in interface B2BCustomerAccountServicejobCode - unique cron job idpageableData - pagination infopublic void updateProfile(CustomerModel customerModel, java.lang.String titleCode, java.lang.String name, java.lang.String login) throws DuplicateUidException
CustomerAccountServiceupdateProfile in interface CustomerAccountServiceupdateProfile in class DefaultCustomerAccountServicecustomerModel - 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 customerDuplicateUidException - if the email is not uniquepublic void setB2bAcceleratorCartToOrderCronJobModelDao(B2BAcceleratorCartToOrderCronJobModelDao b2bAcceleratorCartToOrderCronJobModelDao)
protected B2BAcceleratorCartToOrderCronJobModelDao getB2bAcceleratorCartToOrderCronJobModelDao()
protected void adjustPassword(UserModel currentUser, java.lang.String newUid, java.lang.String currentPassword) throws PasswordMismatchException
DefaultCustomerAccountServicePrincipalModel.UID with a newUid value unless the user with newUid does not exists
and password for current user matches given currentPassword.adjustPassword in class DefaultCustomerAccountServicePasswordMismatchExceptionCopyright © 2018 SAP SE. All Rights Reserved.