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 Type
    Method
    Description
    getAddressesFromUser(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

      EntityList getAddressesFromUser(Entity user, String addressUserCode)
      Returns a list of addresses which are connected to the user and have the passed address type.
    • getUniqueAddressFromUser

      Optional<Entity> getUniqueAddressFromUser(Entity user, String addressUserCode)
      Same as `getAddressesFromUser` but returns a single address if the passed `address user code` is unique on the user. Otherwise Optional.empty() is returned.