Class DefaultTmaAddressFacade

java.lang.Object
de.hybris.platform.b2ctelcofacades.address.impl.DefaultTmaAddressFacade
All Implemented Interfaces:
TmaAddressFacade

public class DefaultTmaAddressFacade extends Object implements TmaAddressFacade
Default implementation of Tma Address facade. It implements Tma specific operations around address.
Since:
2007
  • Constructor Details

    • DefaultTmaAddressFacade

      public DefaultTmaAddressFacade(de.hybris.platform.servicelayer.dto.converter.Converter<PrincipalModel,PrincipalData> principalConverter, de.hybris.platform.servicelayer.user.UserService userService, TmaAddressService addressService, de.hybris.platform.servicelayer.dto.converter.Converter<AddressModel,AddressData> addressConverter, de.hybris.platform.commerceservices.customer.CustomerAccountService customerAccountService, de.hybris.platform.servicelayer.dto.converter.Converter<AddressData,AddressModel> addressReverseConverter, de.hybris.platform.servicelayer.dto.converter.Converter<AddressModel,AddressData> subAddressConverter)
      Instantiates a new default tma address facade.
      Parameters:
      principalConverter - the principal converter
      userService - the user service
      addressService - address service
      addressConverter - the address converter
      customerAccountService - the customer account service
      addressReverseConverter - the address reverse converter
      subAddressConverter - the sub address converter
  • Method Details

    • getAddress

      public AddressData getAddress(String id, String relatedPartyId)
      Description copied from interface: TmaAddressFacade
      Retrieves given address from id for the provided user id.
      Specified by:
      getAddress in interface TmaAddressFacade
      Parameters:
      id - the id
      relatedPartyId - the related party ID
      Returns:
      the specific address for user if it belongs to user otherwise null
    • getAddressesByOffsetAndLimit

      public List<AddressData> getAddressesByOffsetAndLimit(Integer offset, Integer limit)
      Description copied from interface: TmaAddressFacade
      Retrieves a list of addresses filtered by offset and limit.
      Specified by:
      getAddressesByOffsetAndLimit in interface TmaAddressFacade
      Parameters:
      offset - the offset
      limit - the limit
      Returns:
      the list of addresses filtered by offset and limit.
    • getAddress

      public AddressData getAddress(String id)
      Description copied from interface: TmaAddressFacade
      Retrieves given address from id.
      Specified by:
      getAddress in interface TmaAddressFacade
      Parameters:
      id - the id of the address.
      Returns:
      the specific address for the given id.
    • getAddressValidation

      public AddressData getAddressValidation(String id)
      Description copied from interface: TmaAddressFacade
      Retrieves given address validation from id.
      Specified by:
      getAddressValidation in interface TmaAddressFacade
      Parameters:
      id - the id of the address validation
      Returns:
      the specific address validation for the given id.
    • getAddressValidation

      public AddressData getAddressValidation(String id, String relatedPartyID)
      Description copied from interface: TmaAddressFacade
      Retrieves given address validation from id and relatedPartyId.
      Specified by:
      getAddressValidation in interface TmaAddressFacade
      Parameters:
      id - the id of the address validation
      relatedPartyID - the related party ID
      Returns:
      the specific address validation for the given id.
    • getAddressesValidationsByOffsetAndLimit

      public List<AddressData> getAddressesValidationsByOffsetAndLimit(Integer offset, Integer limit)
      Description copied from interface: TmaAddressFacade
      Retrieves a list of address validations filtered by offset and limit.
      Specified by:
      getAddressesValidationsByOffsetAndLimit in interface TmaAddressFacade
      Parameters:
      offset - the offset
      limit - the limit
      Returns:
      the list of address validations filtered by offset and limit.
    • updateAddress

      public AddressData updateAddress(AddressData addressData, String addressId, String userId)
      Description copied from interface: TmaAddressFacade
      Updates a AddressData for the provided user.
      Specified by:
      updateAddress in interface TmaAddressFacade
      Parameters:
      addressData - The address data
      addressId - The identifier of the address
      userId - The identifier of the address
      Returns:
      AddressData which was updated
    • removeAddress

      public boolean removeAddress(String userId, String addressId)
      Description copied from interface: TmaAddressFacade
      Delete given address for the provided user id.
      Specified by:
      removeAddress in interface TmaAddressFacade
      Parameters:
      userId - The identifier of the user
      addressId - The addressId
      Returns:
      True if record is deleted and False in case. no record deletion
    • getSubAddress

      public AddressData getSubAddress(String id, String geographicAddressId)
      Description copied from interface: TmaAddressFacade
      Retrieves given sub address from id for the provided geographic address id.
      Specified by:
      getSubAddress in interface TmaAddressFacade
      Parameters:
      id - the id of Sub Address
      geographicAddressId - the Geographic Address ID
      Returns:
      the specific sub address for the given geographic address and sub address id.
    • getSubAddress

      public AddressData getSubAddress(String id, String geographicAddressId, String relatedPartyId)
      Description copied from interface: TmaAddressFacade
      Retrieves given sub address from id for the provided geographic address id.
      Specified by:
      getSubAddress in interface TmaAddressFacade
      Parameters:
      id - the id of Sub Address
      geographicAddressId - the Geographic Address ID
      relatedPartyId - the related party ID
      Returns:
      the specific address for user if it belongs to user otherwise null
    • getSubAddresses

      public List<AddressData> getSubAddresses(String geographicAddressId)
      Description copied from interface: TmaAddressFacade
      Retrieves a list of sub addresses for the provided geographic address id.
      Specified by:
      getSubAddresses in interface TmaAddressFacade
      Parameters:
      geographicAddressId - the Geographic Address ID
      Returns:
      the list of sub addresses
    • getSubAddresses

      public List<AddressData> getSubAddresses(String geographicAddressId, String relatedPartyId)
      Description copied from interface: TmaAddressFacade
      Retrieves a list of sub addresses for the provided geographic address id and user id.
      Specified by:
      getSubAddresses in interface TmaAddressFacade
      Parameters:
      geographicAddressId - the Geographic Address ID
      relatedPartyId - the related party ID
      Returns:
      the list of specific sub addresses if belongs to user otherwise null
    • getUserService

      protected de.hybris.platform.servicelayer.user.UserService getUserService()
    • getAddressConverter

      protected de.hybris.platform.servicelayer.dto.converter.Converter<AddressModel,AddressData> getAddressConverter()
    • getSubAddressConverter

      protected de.hybris.platform.servicelayer.dto.converter.Converter<AddressModel,AddressData> getSubAddressConverter()
    • getCustomerAccountService

      protected de.hybris.platform.commerceservices.customer.CustomerAccountService getCustomerAccountService()
    • getAddressReverseConverter

      protected de.hybris.platform.servicelayer.dto.converter.Converter<AddressData,AddressModel> getAddressReverseConverter()
    • getAddressService

      protected TmaAddressService getAddressService()
    • getPrincipalConverter

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