Class DefaultTmaUserFacade

java.lang.Object
de.hybris.platform.commercefacades.user.impl.DefaultUserFacade
de.hybris.platform.b2ctelcofacades.user.impl.DefaultTmaUserFacade
All Implemented Interfaces:
TmaUserFacade, de.hybris.platform.commercefacades.user.UserFacade

public class DefaultTmaUserFacade extends de.hybris.platform.commercefacades.user.impl.DefaultUserFacade implements TmaUserFacade
Default implementation of Tma user facade. It implements Tma specific operations around users.
Since:
1907
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAddress(AddressData addressData)
     
    createAddressForUser(AddressData addressData, String userId)
    Creates a AddressData for the provided user.
    getAddressesForUser(String userId, boolean visibleInAddressBook)
    Return a list of AddressData for user identified by its uid having the address book visibility provided.
    protected de.hybris.platform.servicelayer.dto.converter.Converter<PrincipalModel,PrincipalData>
     
    getValidationAddressesForUser(String userId, boolean visibleInAddressBook)
    Return a list of validation AddressData for user identified by its uid having the address book visibility provided.
    void
     
    void
    setPrincipalConverter(de.hybris.platform.servicelayer.dto.converter.Converter<PrincipalModel,PrincipalData> principalConverter)
     

    Methods inherited from class de.hybris.platform.commercefacades.user.impl.DefaultUserFacade

    editAddress, getAddressBook, getAddressConverter, getAddressForCode, getAddressReversePopulator, getCardPaymentInfoReversePopulator, getCartService, getCCPaymentInfoForCode, getCCPaymentInfos, getCheckoutCustomerStrategy, getCommerceCommonI18NService, getCommonI18NService, getCreditCardPaymentInfoConverter, getCurrentUserForCheckout, getCustomerAccountService, getDefaultAddress, getModelService, getTitleConverter, getTitles, getUserMatchingService, getUserService, getUserUID, isAddressBookEmpty, isAnonymousUser, isDefaultAddress, isUserExisting, removeCCPaymentInfo, setAddressConverter, setAddressReversePopulator, setCardPaymentInfoReversePopulator, setCartService, setCheckoutCustomerStrategy, setCommerceCommonI18NService, setCommonI18NService, setCreditCardPaymentInfoConverter, setCurrentUser, setCustomerAccountService, setDefaultAddress, setDefaultPaymentInfo, setModelService, setTitleConverter, setUserMatchingService, setUserService, syncSessionCurrency, syncSessionLanguage, unlinkCCPaymentInfo, updateCCPaymentInfo, updateDefaultPaymentInfo

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface de.hybris.platform.commercefacades.user.UserFacade

    editAddress, getAddressBook, getAddressForCode, getCCPaymentInfoForCode, getCCPaymentInfos, getDefaultAddress, getTitles, getUserUID, isAddressBookEmpty, isAnonymousUser, isDefaultAddress, isUserExisting, removeCCPaymentInfo, setCurrentUser, setDefaultAddress, setDefaultPaymentInfo, syncSessionCurrency, syncSessionLanguage, unlinkCCPaymentInfo, updateCCPaymentInfo
  • Constructor Details

    • DefaultTmaUserFacade

      public DefaultTmaUserFacade()
  • Method Details

    • getAddressesForUser

      public List<AddressData> getAddressesForUser(String userId, boolean visibleInAddressBook)
      Return a list of AddressData for user identified by its uid having the address book visibility provided. In case the visibleInAddressBook flag is false then the response also contains those addresses for which the visibleInAddressBook attribute value is null.
      Specified by:
      getAddressesForUser in interface TmaUserFacade
      Parameters:
      userId - the identifier of the user
      visibleInAddressBook - flag indicating the fact address should be visible in address book
      Returns:
      a list of addresses for user with uid provided if exists, otherwise an empty list is returned
    • getValidationAddressesForUser

      public List<AddressData> getValidationAddressesForUser(String userId, boolean visibleInAddressBook)
      Description copied from interface: TmaUserFacade
      Return a list of validation AddressData for user identified by its uid having the address book visibility provided.
      Specified by:
      getValidationAddressesForUser in interface TmaUserFacade
      Parameters:
      userId - the identifier of the user
      visibleInAddressBook - flag indicating the fact address should be visible in address book
      Returns:
      a list of addresses for user with uid provided if exists, otherwise an empty list is returned
    • createAddressForUser

      public AddressData createAddressForUser(AddressData addressData, String userId)
      Description copied from interface: TmaUserFacade
      Creates a AddressData for the provided user.
      Specified by:
      createAddressForUser in interface TmaUserFacade
      Parameters:
      addressData - The address
      userId - The identifier of the user
      Returns:
      AddressData which was created
    • addAddress

      public void addAddress(AddressData addressData)
      Specified by:
      addAddress in interface de.hybris.platform.commercefacades.user.UserFacade
      Overrides:
      addAddress in class de.hybris.platform.commercefacades.user.impl.DefaultUserFacade
    • removeAddress

      public void removeAddress(AddressData addressData)
      Specified by:
      removeAddress in interface de.hybris.platform.commercefacades.user.UserFacade
      Overrides:
      removeAddress in class de.hybris.platform.commercefacades.user.impl.DefaultUserFacade
    • getPrincipalConverter

      protected de.hybris.platform.servicelayer.dto.converter.Converter<PrincipalModel,PrincipalData> getPrincipalConverter()
    • setPrincipalConverter

      public void setPrincipalConverter(de.hybris.platform.servicelayer.dto.converter.Converter<PrincipalModel,PrincipalData> principalConverter)