Interface TmaAddressService

All Superinterfaces:
de.hybris.platform.servicelayer.user.AddressService
All Known Implementing Classes:
DefaultTmaAddressService

public interface TmaAddressService extends de.hybris.platform.servicelayer.user.AddressService
Service handling operations specific to AddressModel
Since:
1911
  • Method Details

    • findAddress

      AddressModel findAddress(String addressId)
      Gets an Address for a given id.
      Parameters:
      addressId - the id of the requested address.
      Returns:
      the Address if found.
      Throws:
      de.hybris.platform.servicelayer.exceptions.ModelNotFoundException - if no address is found
    • findAddressValidationsByOffsetAndLimit

      List<AddressModel> findAddressValidationsByOffsetAndLimit(Integer offset, Integer limit)
      Gets Address Validations filtered by offset and limit.
      Parameters:
      offset - the offset
      limit - the limit
      Returns:
      the list of Address Validations filtered by offset and limit.
    • doesAddressExist

      boolean doesAddressExist(String addressId)
      Checks if the address with the given id exists.
      Parameters:
      addressId - the id of the address.
      Returns:
      true if the address exists; false otherwise.
    • doesAddressBelongToUser

      boolean doesAddressBelongToUser(AddressModel addressModel, UserModel user)
      Checks if an address belongs to a user.
      Parameters:
      addressModel - the address to be checked
      user - the user.
      Returns:
      true if the address belongs to the user; otherwise false.
    • doesAddressNeedCloning

      boolean doesAddressNeedCloning(AddressModel address, AbstractOrderEntryModel orderEntry)
      Checks if the address should be cloned
      Parameters:
      address - the address to be checked
      orderEntry - the order entry for which the address should be checked
      Returns:
      true if the address should be cloned, otherwise false
    • findAddressesByOffsetAndLimit

      List<AddressModel> findAddressesByOffsetAndLimit(Integer offset, Integer limit)
      Gets Addresses filtered by offset and limit.
      Parameters:
      offset - the offset
      limit - the limit
      Returns:
      the list of Addresses filtered by offset and limit.