Class DefaultB2BCustomerFacade
java.lang.Object
de.hybris.platform.commercefacades.customer.impl.DefaultCustomerFacade
de.hybris.platform.b2bacceleratorfacades.customer.impl.DefaultB2BCustomerFacade
- All Implemented Interfaces:
CustomerFacade
B2B implementation for
CustomerFacade.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangePassword(String oldPassword, String newPassword) Changes current user password.voidsetPasswordPattern(String passwordPattern) voidupdatePassword(String token, String newPassword) Update the password for the user by decrypting and validating the token.booleanvalidatePassword(String password) Validates password.Methods inherited from class de.hybris.platform.commercefacades.customer.impl.DefaultCustomerFacade
changeGuestToCustomer, changeUid, closeAccount, createGuestUserForAnonymousCheckout, forgottenPassword, generateGUID, getAddressConverter, getAddressReversePopulator, getBaseSiteService, getBaseStoreService, getBusinessProcessService, getCartCleanStrategy, getCartService, getCommerceCartService, getCommonI18NService, getCreditCardPaymentInfoConverter, getCurrentCustomer, getCurrentCustomerUid, getCurrentSessionCustomer, getCurrentUser, getCustomerAccountService, getCustomerConverter, getCustomerNameStrategy, getCustomerReversePopulator, getEventService, getModelService, getOrderFacade, getPasswordEncoderService, getSessionService, getStoreSessionFacade, getTitleConverter, getUserFacade, getUserForUID, getUserMatchingService, getUserService, initializeCommerceEvent, loginSuccess, nextDummyCustomerData, publishLoginSuccessEvent, register, rememberMeLoginSuccessWithUrlEncoding, setAddressConverter, setAddressReversePopulator, setBaseSiteService, setBaseStoreService, setBusinessProcessService, setCartCleanStrategy, setCartService, setCommerceCartService, setCommonI18NService, setCommonPropertiesForRegister, setCreditCardPaymentInfoConverter, setCustomerAccountService, setCustomerConverter, setCustomerNameStrategy, setCustomerReversePopulator, setEventService, setModelService, setOrderFacade, setPassword, setPasswordEncoderService, setSessionService, setStoreSessionFacade, setTitleConverter, setTitleForRegister, setUidForRegister, setUserFacade, setUserMatchingService, setUserService, updateCartWithGuestForAnonymousCheckout, updateFullProfile, updateProfile, updateSessionCurrency, updateSessionLanguage, validateDataBeforeUpdate
-
Constructor Details
-
DefaultB2BCustomerFacade
public DefaultB2BCustomerFacade()
-
-
Method Details
-
updatePassword
public void updatePassword(String token, String newPassword) throws TokenInvalidatedException, InvalidPasswordException Description copied from interface:CustomerFacadeUpdate the password for the user by decrypting and validating the token.- Specified by:
updatePasswordin interfaceCustomerFacade- Overrides:
updatePasswordin classDefaultCustomerFacade- Parameters:
token- the token to identify the the customer to reset the password for.newPassword- the new password to set- Throws:
TokenInvalidatedException- if the token was already used or there is a newer tokenInvalidPasswordException
-
changePassword
public void changePassword(String oldPassword, String newPassword) throws PasswordMismatchException, InvalidPasswordException Description copied from interface:CustomerFacadeChanges current user password. If current session user is anonymous nothing happens.- Specified by:
changePasswordin interfaceCustomerFacade- Overrides:
changePasswordin classDefaultCustomerFacade- Parameters:
oldPassword- old password to confirmnewPassword- new password to set- Throws:
PasswordMismatchException- if the given old password does not match the one stored in the systemInvalidPasswordException
-
validatePassword
Validates password.- Parameters:
password- containing the password string to be validated.- Returns:
- returns a boolean (true ou false) result.
-
getPasswordPattern
-
setPasswordPattern
-