public interface UserFacade
| Modifier and Type | Method and Description |
|---|---|
void |
addAddress(AddressData addressData)
Adds the address for the current user
|
void |
editAddress(AddressData addressData)
Updates the address for the current user
|
java.util.List<AddressData> |
getAddressBook()
Get the list of delivery addresses.
|
AddressData |
getAddressForCode(java.lang.String code)
Returns the address with matching code for the current user
|
CCPaymentInfoData |
getCCPaymentInfoForCode(java.lang.String code)
Returns the current user's credit card payment info given it's code
|
java.util.List<CCPaymentInfoData> |
getCCPaymentInfos(boolean saved)
Returns the current user's Credit Card Payment Infos
|
AddressData |
getDefaultAddress()
Returns the default address
|
java.util.List<TitleData> |
getTitles()
Provide all localized titles.
|
boolean |
isAddressBookEmpty()
Deprecated.
since 6.5, instead check if
getAddressBook() is empty directly |
boolean |
isAnonymousUser()
Test if the current user is anonymous
|
boolean |
isDefaultAddress(java.lang.String addressId)
Test if the address id matches with the default address id
|
void |
removeAddress(AddressData addressData)
Removes the address for the current user
|
void |
removeCCPaymentInfo(java.lang.String id)
Removes credit card payment info by id
|
void |
setDefaultAddress(AddressData addressData)
Sets the default address
|
void |
setDefaultPaymentInfo(CCPaymentInfoData paymentInfo)
Sets the default Payment Info
|
void |
syncSessionCurrency()
Sets users preferred currency to the current session currency
|
void |
syncSessionLanguage()
Sets users preferred language to the current session language
|
void |
unlinkCCPaymentInfo(java.lang.String id)
Deprecated.
since 6.7. Use
removeCCPaymentInfo(String) instead |
void |
updateCCPaymentInfo(CCPaymentInfoData paymentInfo)
Updates current users' payment info
|
java.util.List<TitleData> getTitles()
TitleData objects@Deprecated boolean isAddressBookEmpty()
getAddressBook() is empty directlyjava.util.List<AddressData> getAddressBook()
void addAddress(AddressData addressData)
addressData - the address to addvoid removeAddress(AddressData addressData)
addressData - the address to removevoid editAddress(AddressData addressData)
addressData - the address to updatevoid setDefaultAddress(AddressData addressData)
addressData - the address to make defaultAddressData getDefaultAddress()
AddressData getAddressForCode(java.lang.String code)
code - the address codeboolean isDefaultAddress(java.lang.String addressId)
addressId - the address Idjava.util.List<CCPaymentInfoData> getCCPaymentInfos(boolean saved)
saved - true to retrieve only saved credit card payment infosCCPaymentInfoData getCCPaymentInfoForCode(java.lang.String code)
code - the codevoid updateCCPaymentInfo(CCPaymentInfoData paymentInfo)
paymentInfo - - new payment info datavoid removeCCPaymentInfo(java.lang.String id)
id - the id@Deprecated void unlinkCCPaymentInfo(java.lang.String id)
removeCCPaymentInfo(String) insteadid - the idvoid setDefaultPaymentInfo(CCPaymentInfoData paymentInfo)
paymentInfo - the paymentInfo to make defaultvoid syncSessionLanguage()
void syncSessionCurrency()
boolean isAnonymousUser()
Copyright © 2018 SAP SE. All Rights Reserved.