Class AddressUserServiceImpl
java.lang.Object
ch.tocco.nice2.optional.address.impl.AddressUserServiceImpl
- All Implemented Interfaces:
AddressUserService
-
Constructor Summary
ConstructorDescriptionAddressUserServiceImpl
(Context context, QueryBuilderFactory queryBuilderFactory) -
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.
-
Constructor Details
-
AddressUserServiceImpl
-
-
Method Details
-
getAddressesFromUser
Description copied from interface:AddressUserService
Returns a list of addresses which are connected to the user and have the passed address type.- Specified by:
getAddressesFromUser
in interfaceAddressUserService
-
getUniqueAddressFromUser
Description copied from interface:AddressUserService
Same as `getAddressesFromUser` but returns a single address if the passed `address user code` is unique on the user. OtherwiseOptional.empty()
is returned.- Specified by:
getUniqueAddressFromUser
in interfaceAddressUserService
-