Interface AddressUserService
- All Known Implementing Classes:
AddressUserServiceImpl
public interface AddressUserService
Service to easily find addresses connected with users depending on the `Address_user` entity.
-
Method Summary
Modifier and TypeMethodDescriptiongetAddressesFromUser
(Entity user, String addressUserCode) Returns a list of addresses which are connected to the user and have the passed address type.getUniqueAddressFromUser
(Entity user, String addressUserCode) Same as `getAddressesFromUser` but returns a single address if the passed `address user code` is unique on the user.
-
Method Details
-
getAddressesFromUser
Returns a list of addresses which are connected to the user and have the passed address type. -
getUniqueAddressFromUser
Same as `getAddressesFromUser` but returns a single address if the passed `address user code` is unique on the user. OtherwiseOptional.empty()
is returned.
-