public interface CustomerFacade
| Modifier and Type | Method and Description |
|---|---|
void |
changeGuestToCustomer(java.lang.String pwd,
java.lang.String orderCode)
Create a regular customer from a guest customer who has just completed the guest checkout.
|
void |
changePassword(java.lang.String oldPassword,
java.lang.String newPassword)
Changes current user password.
|
void |
changeUid(java.lang.String newUid,
java.lang.String currentPassword)
Change the current customer's UID.
|
CustomerData |
closeAccount()
Close Account for current session user.
|
void |
createGuestUserForAnonymousCheckout(java.lang.String email,
java.lang.String name)
Creates a new guest customer for anonymousCheckout and sets the email and name.
|
void |
forgottenPassword(java.lang.String uid)
Sends a forgotten password request for the customer specified.
|
java.lang.String |
generateGUID()
Generates a random guid
|
CustomerData |
getCurrentCustomer()
Returns the current session user.
|
java.lang.String |
getCurrentCustomerUid()
Returns the uid of current session user.
|
CustomerData |
getUserForUID(java.lang.String userId)
Gets the user for UID.
|
void |
loginSuccess()
updates the session currency and language to the user settings, assigns the cart to the current user and
calculates the cart
|
void |
register(RegisterData registerData)
Register a user with given parameters
|
void |
rememberMeLoginSuccessWithUrlEncoding(boolean languageEncoding,
boolean currencyEncoding)
This method will be used by rememberMeServices when there is encoding attributes for language and currency.
|
void |
updateCartWithGuestForAnonymousCheckout(CustomerData guestCustomerData)
Guest customer which is created for anonymous checkout will be the cart user.
|
void |
updateFullProfile(CustomerData customerData)
Updates current customer's profile with given parameters
|
void |
updatePassword(java.lang.String token,
java.lang.String newPassword)
Update the password for the user by decrypting and validating the token.
|
void |
updateProfile(CustomerData customerData)
Updates current customer's profile with given parameters
|
void register(RegisterData registerData) throws DuplicateUidException, UnknownIdentifierException, java.lang.IllegalArgumentException
registerData - the user data the user will be registered withjava.lang.IllegalArgumentException - if required data is missingUnknownIdentifierException - if the title code is invalidDuplicateUidException - if the login is not uniquevoid forgottenPassword(java.lang.String uid)
uid - the uid of the customer to send the forgotten password mail forUnknownIdentifierException - if the customer cannot be found for the uid specifiedvoid updatePassword(java.lang.String token,
java.lang.String newPassword)
throws TokenInvalidatedException
token - the token to identify the the customer to reset the password for.newPassword - the new password to setjava.lang.IllegalArgumentException - If the new password is empty or the token is invalid or expiredTokenInvalidatedException - if the token was already used or there is a newer tokenCustomerData getCurrentCustomer() throws ConversionException
ConversionException - the conversion exception when exception occurred when converting userjava.lang.String getCurrentCustomerUid()
void changeUid(java.lang.String newUid,
java.lang.String currentPassword)
throws DuplicateUidException,
PasswordMismatchException
newUid - the new UID for the current customercurrentPassword - current user password to validate userPasswordMismatchException - thrown if the password is invalidDuplicateUidException - thrown if the newUid is already in usevoid changePassword(java.lang.String oldPassword,
java.lang.String newPassword)
throws PasswordMismatchException
oldPassword - old password to confirmnewPassword - new password to setPasswordMismatchException - if the given old password does not match the one stored in the systemvoid updateProfile(CustomerData customerData) throws DuplicateUidException
customerData - the updated customer dataDuplicateUidException - if the login is not uniquevoid updateFullProfile(CustomerData customerData) throws DuplicateUidException
customerData - the updated customer dataDuplicateUidException - if the login is not uniquevoid loginSuccess()
void changeGuestToCustomer(java.lang.String pwd,
java.lang.String orderCode)
throws DuplicateUidException
pwd - the new password entered by the userorderCode - the order codeDuplicateUidException - if the login is not uniquejava.lang.String generateGUID()
void createGuestUserForAnonymousCheckout(java.lang.String email,
java.lang.String name)
throws DuplicateUidException
email - the email address of the anonymous customername - the name of the anonymous customerDuplicateUidExceptionvoid updateCartWithGuestForAnonymousCheckout(CustomerData guestCustomerData)
guestCustomerData - customer data to update the cart withvoid rememberMeLoginSuccessWithUrlEncoding(boolean languageEncoding,
boolean currencyEncoding)
languageEncoding - enable/disable language encodingcurrencyEncoding - enable/disable currency encodingCustomerData getUserForUID(java.lang.String userId)
userId - the user idCustomerData closeAccount()
UserModel.DEACTIVATIONDATE attributeCopyright © 2018 SAP SE. All Rights Reserved.