public class DefaultB2BCustomerFacade extends DefaultCustomerFacade
CustomerFacade.| Constructor and Description |
|---|
DefaultB2BCustomerFacade() |
| Modifier and Type | Method and Description |
|---|---|
void |
changePassword(java.lang.String oldPassword,
java.lang.String newPassword)
Changes current user password.
|
java.lang.String |
getPasswordPattern() |
void |
setPasswordPattern(java.lang.String passwordPattern) |
void |
updatePassword(java.lang.String token,
java.lang.String newPassword)
Update the password for the user by decrypting and validating the token.
|
boolean |
validatePassword(java.lang.String password)
Validates password.
|
changeGuestToCustomer, changeUid, closeAccount, createGuestUserForAnonymousCheckout, forgottenPassword, generateGUID, getAddressConverter, getAddressReversePopulator, getBaseSiteService, getBaseStoreService, getCartCleanStrategy, getCartService, getCommerceCartService, getCommonI18NService, getCreditCardPaymentInfoConverter, getCurrentCustomer, getCurrentCustomerUid, getCurrentSessionCustomer, getCurrentUser, getCustomerAccountService, getCustomerConverter, getCustomerNameStrategy, getCustomerReversePopulator, getEventService, getModelService, getOrderFacade, getPasswordEncoderService, getSessionService, getStoreSessionFacade, getTitleConverter, getUserFacade, getUserForUID, getUserService, initializeCommerceEvent, loginSuccess, register, rememberMeLoginSuccessWithUrlEncoding, setAddressConverter, setAddressReversePopulator, setBaseSiteService, setBaseStoreService, setCartCleanStrategy, setCartService, setCommerceCartService, setCommonI18NService, setCreditCardPaymentInfoConverter, setCustomerAccountService, setCustomerConverter, setCustomerNameStrategy, setCustomerReversePopulator, setEventService, setModelService, setOrderFacade, setPasswordEncoderService, setSessionService, setStoreSessionFacade, setTitleConverter, setUidForRegister, setUserFacade, setUserService, updateCartWithGuestForAnonymousCheckout, updateFullProfile, updateProfile, updateSessionCurrency, updateSessionLanguage, validateDataBeforeUpdatepublic void updatePassword(java.lang.String token,
java.lang.String newPassword)
throws TokenInvalidatedException,
InvalidPasswordException
CustomerFacadeupdatePassword in interface CustomerFacadeupdatePassword in class DefaultCustomerFacadetoken - the token to identify the the customer to reset the password for.newPassword - the new password to setTokenInvalidatedException - if the token was already used or there is a newer tokenInvalidPasswordExceptionpublic void changePassword(java.lang.String oldPassword,
java.lang.String newPassword)
throws PasswordMismatchException,
InvalidPasswordException
CustomerFacadechangePassword in interface CustomerFacadechangePassword in class DefaultCustomerFacadeoldPassword - old password to confirmnewPassword - new password to setPasswordMismatchException - if the given old password does not match the one stored in the systemInvalidPasswordExceptionpublic boolean validatePassword(java.lang.String password)
password - containing the password string to be validated.public java.lang.String getPasswordPattern()
public void setPasswordPattern(java.lang.String passwordPattern)
Copyright © 2018 SAP SE. All Rights Reserved.