Interface AddressDataProvider

All Known Implementing Classes:
AddressDataProviderAddress, AddressDataProviderApplication, AddressDataProviderDebitor, AddressDataProviderMembership, AddressDataProviderOrder, AddressDataProviderUser, DummyNewsletterReceiverAddressDataProvider

public interface AddressDataProvider
  • Method Details

    • getEntityName

      String getEntityName()
      Name of the entity model for which this AddressDataProvider may be used.
    • getData

      AddressData getData(Entity entity, @Nullable AddressService.AddressType type, @Nullable AddressService.AddressLook look)
      Write data required for address generation to a map to be provided to generic address service. New modules requiring address generation for an entity implement this method. The implementing class needs to be contributed providing the name of the entity it handles.
      Returns:
      a map containing required information to generate address
    • getData

      AddressData getData(AddressData data, Entity entity, @Nullable AddressService.AddressType type, @Nullable AddressService.AddressLook look)
      Write data required for address generation to a map to be provided to generic address service. New modules requiring address generation for an entity implement this method. The implementing class needs to be contributed providing the name of the entity it handles.
      Parameters:
      data - AddressData object with predefined values. Values may be overwritten by values from the entity
      Returns:
      a map containing required information to generate address
    • getData

      AddressData getData(Entity entity)