Class DefaultAddressAsStringProvider

java.lang.Object
ch.tocco.nice2.optional.address.impl.outputcenter.DefaultAddressAsStringProvider
All Implemented Interfaces:
AddressAsStringProvider

@Component public class DefaultAddressAsStringProvider extends Object implements AddressAsStringProvider
Default implementation for AddressAsStringProvider accessing AddressService.
  • Constructor Details

    • DefaultAddressAsStringProvider

      public DefaultAddressAsStringProvider(AddressService addressService)
  • Method Details

    • getAddressAsString

      @Nullable public @Nullable String getAddressAsString(@Nullable @Nullable Entity user, @Nullable @Nullable Entity address)
      Description copied from interface: AddressAsStringProvider
      Get address as string from either a user or address entity. This method is called when saving an Output_job_item when no explicit address as string was set.
      Specified by:
      getAddressAsString in interface AddressAsStringProvider