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) Retrieves given address from id.getAddress(String id, String relatedPartyId) Retrieves given address from id for the provided user id.getAddressesByOffsetAndLimit(Integer offset, Integer limit) Retrieves a list of addresses filtered by offset and limit.getAddressesValidationsByOffsetAndLimit(Integer offset, Integer limit) Retrieves a list of address validations filtered by offset and limit.Retrieves given address validation from id.getAddressValidation(String id, String relatedPartyID) Retrieves given address validation from id and relatedPartyId.getSubAddress(String id, String geographicAddressId) Retrieves given sub address from id for the provided geographic address id.getSubAddress(String id, String geographicAddressId, String relatedPartyId) Retrieves given sub address from id for the provided geographic address id.getSubAddresses(String geographicAddressId) Retrieves a list of sub addresses for the provided geographic address id.getSubAddresses(String geographicAddressId, String relatedPartyId) Retrieves a list of sub addresses for the provided geographic address id and 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
-
getAddress
Retrieves given address from id.- Parameters:
id- the id of the address.- Returns:
- the specific address for the given id.
-
getAddressValidation
Retrieves given address validation from id.- Parameters:
id- the id of the address validation- Returns:
- the specific address validation for the given id.
-
getAddressValidation
Retrieves given address validation from id and relatedPartyId.- Parameters:
id- the id of the address validationrelatedPartyID- the related party ID- Returns:
- the specific address validation for the given id.
-
getAddressesValidationsByOffsetAndLimit
Retrieves a list of address validations filtered by offset and limit.- Parameters:
offset- the offsetlimit- the limit- Returns:
- the list of address validations filtered by offset and limit.
-
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
-
getAddressesByOffsetAndLimit
Retrieves a list of addresses filtered by offset and limit.- Parameters:
offset- the offsetlimit- the limit- Returns:
- the list of addresses filtered by offset and limit.
-
getSubAddress
Retrieves given sub address from id for the provided geographic address id.- Parameters:
id- the id of Sub AddressgeographicAddressId- the Geographic Address IDrelatedPartyId- the related party ID- Returns:
- the specific address for user if it belongs to user otherwise null
-
getSubAddress
Retrieves given sub address from id for the provided geographic address id.- Parameters:
id- the id of Sub AddressgeographicAddressId- the Geographic Address ID- Returns:
- the specific sub address for the given geographic address and sub address id.
-
getSubAddresses
Retrieves a list of sub addresses for the provided geographic address id.- Parameters:
geographicAddressId- the Geographic Address ID- Returns:
- the list of sub addresses
-
getSubAddresses
Retrieves a list of sub addresses for the provided geographic address id and user id.- Parameters:
geographicAddressId- the Geographic Address IDrelatedPartyId- the related party ID- Returns:
- the list of specific sub addresses if belongs to user otherwise null
-