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 Summary
Modifier and TypeMethodDescriptionbooleandoesAddressBelongToUser(AddressModel addressModel, UserModel user) Checks if an address belongs to a user.booleandoesAddressExist(String addressId) Checks if the address with the given id exists.booleandoesAddressNeedCloning(AddressModel address, AbstractOrderEntryModel orderEntry) Checks if the address should be clonedfindAddress(String addressId) Gets an Address for a given id.Methods inherited from interface de.hybris.platform.servicelayer.user.AddressService
cloneAddress, cloneAddressForOwner, createAddressForOwner, createAddressForUser, getAddressesForOwner
-
Method Details
-
findAddress
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
-
doesAddressExist
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
Checks if an address belongs to a user.- Parameters:
addressModel- the address to be checkeduser- the user.- Returns:
- true if the address belongs to the user; otherwise false.
-
doesAddressNeedCloning
Checks if the address should be cloned- Parameters:
address- the address to be checkedorderEntry- the order entry for which the address should be checked- Returns:
- true if the address should be cloned, otherwise false
-