Class DefaultB2BCustomerFacade
- java.lang.Object
-
- de.hybris.platform.commercefacades.customer.impl.DefaultCustomerFacade
-
- de.hybris.platform.b2bacceleratorfacades.customer.impl.DefaultB2BCustomerFacade
-
- All Implemented Interfaces:
CustomerFacade
public class DefaultB2BCustomerFacade extends DefaultCustomerFacade
B2B implementation forCustomerFacade.
-
-
Constructor Summary
Constructors Constructor Description DefaultB2BCustomerFacade()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangePassword(java.lang.String oldPassword, java.lang.String newPassword)Changes current user password.java.lang.StringgetPasswordPattern()voidsetPasswordPattern(java.lang.String passwordPattern)voidupdatePassword(java.lang.String token, java.lang.String newPassword)Update the password for the user by decrypting and validating the token.booleanvalidatePassword(java.lang.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
-
-
-
-
Method Detail
-
updatePassword
public void updatePassword(java.lang.String token, java.lang.String newPassword) throws TokenInvalidatedException, InvalidPasswordExceptionDescription 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(java.lang.String oldPassword, java.lang.String newPassword) throws PasswordMismatchException, InvalidPasswordExceptionDescription 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
public boolean validatePassword(java.lang.String password)
Validates password.- Parameters:
password- containing the password string to be validated.- Returns:
- returns a boolean (true ou false) result.
-
getPasswordPattern
public java.lang.String getPasswordPattern()
-
setPasswordPattern
public void setPasswordPattern(java.lang.String passwordPattern)
-
-