Interface TmaAddressService
-
- All Superinterfaces:
de.hybris.platform.servicelayer.user.AddressService
- All Known Implementing Classes:
DefaultTmaAddressService
public interface TmaAddressService extends de.hybris.platform.servicelayer.user.AddressServiceService handling operations specific toAddressModel- Since:
- 1911
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandoesAddressBelongToUser(AddressModel addressModel, UserModel user)Checks if an address belongs to a user.booleandoesAddressExist(java.lang.String addressId)Checks if the address with the given id exists.booleandoesAddressNeedCloning(AddressModel address, AbstractOrderEntryModel orderEntry)Checks if the address should be clonedAddressModelfindAddress(java.lang.String addressId)Gets an Address for a given id.
-
-
-
Method Detail
-
findAddress
AddressModel findAddress(java.lang.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
-
doesAddressExist
boolean doesAddressExist(java.lang.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 checkeduser- 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 checkedorderEntry- the order entry for which the address should be checked- Returns:
- true if the address should be cloned, otherwise false
-
-