Interface AddressDataProvider
- All Known Implementing Classes:
AddressDataProviderAddress
,AddressDataProviderApplication
,AddressDataProviderDebitor
,AddressDataProviderMembership
,AddressDataProviderOrder
,AddressDataProviderUser
,DummyNewsletterReceiverAddressDataProvider
public interface AddressDataProvider
-
Method Summary
Modifier and TypeMethodDescriptiongetData
(AddressData data, Entity entity, AddressService.AddressType type, AddressService.AddressLook look) Write data required for address generation to a map to be provided to generic address service.getData
(Entity entity, AddressService.AddressType type, AddressService.AddressLook look) Write data required for address generation to a map to be provided to generic address service.Name of the entity model for which this AddressDataProvider may be used.
-
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
-