Class AddressDataProviderDebitor
java.lang.Object
ch.tocco.nice2.optional.debitor.impl.AddressDataProviderDebitor
- All Implemented Interfaces:
AddressDataProvider
,SalutationConstants
@Component
public class AddressDataProviderDebitor
extends Object
implements AddressDataProvider, SalutationConstants
Data provider to enable address generation for Debitor entity.
-
Field Summary
Fields inherited from interface ch.tocco.nice2.optional.address.api.SalutationConstants
ACADEMIC_TITLE, DATA_OBJECT, ENTITY_APPLICATION, ENTITY_SALUTATION, ENTITY_USER, FORMAL_SALUTATION_UNIQUE_ID, GENDER, INFORMAL_SALUTATION_UNIQUE_ID, LABEL, NEUTRAL_SALUTATION_UNIQUE_ID, OTHER_TITLE, REL_ACADEMIC_TITLE, REL_ADDRESS_OUTPUT, REL_GENDER, REL_SALUTATION, REL_USER_OUTPUT, SALUTATION, SALUTATION_TITLE_PLACEHOLDER, TEMPLATE, UNIQUE_ID
-
Constructor Summary
-
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.
-
Constructor Details
-
AddressDataProviderDebitor
-
-
Method Details
-
getData
public AddressData getData(Entity entity, AddressService.AddressType type, AddressService.AddressLook look) Description copied from interface:AddressDataProvider
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.- Specified by:
getData
in interfaceAddressDataProvider
- Returns:
- a map containing required information to generate address
-
getData
public AddressData getData(AddressData data, Entity entity, AddressService.AddressType type, AddressService.AddressLook look) Description copied from interface:AddressDataProvider
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.- Specified by:
getData
in interfaceAddressDataProvider
- 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
- Specified by:
getData
in interfaceAddressDataProvider
-
getEntityName
Description copied from interface:AddressDataProvider
Name of the entity model for which this AddressDataProvider may be used.- Specified by:
getEntityName
in interfaceAddressDataProvider
-