Interface TmaAddressFacade
- All Known Implementing Classes:
DefaultTmaAddressFacade
public interface TmaAddressFacade
Address facade handling address related operations in TMU.
- Since:
- 2007
-
Method Summary
Modifier and TypeMethodDescriptiongetAddress(String id, String relatedPartyID) Retrieves given address from id for the provided user id.booleanremoveAddress(String userId, String addressId) Delete given address for the provided user id.updateAddress(AddressData addressData, String addressId, String userId) Updates aAddressDatafor the provided user.
-
Method Details
-
getAddress
Retrieves given address from id for the provided user id.- Parameters:
id- the idrelatedPartyID- the related party ID- Returns:
- the specific address for user if it belongs to user otherwise null
-
updateAddress
Updates aAddressDatafor the provided user.- Parameters:
addressData- The address dataaddressId- The identifier of the addressuserId- The identifier of the address- Returns:
AddressDatawhich was updated
-
removeAddress
Delete given address for the provided user id.- Parameters:
userId- The identifier of the useraddressId- The addressId- Returns:
- True if record is deleted and False in case. no record deletion
-