Class RecipientServiceImpl
java.lang.Object
ch.tocco.nice2.optional.address.impl.RecipientServiceImpl
- All Implemented Interfaces:
RecipientService
-
Constructor Summary
ConstructorDescriptionRecipientServiceImpl
(AddressService addressService, DefaultDisplayService defaultDisplayService) -
Method Summary
Modifier and TypeMethodDescriptiongetRecipientsByTarget
(EntityList selection, RecipientParameters parameters) Evaluates and returns allEffectiveRecipient
s arranged as a list ofCommunicationTarget
s based on the selected entities and the providedRecipientParameters
.getUnmergedRecipients
(EntityList selection, RecipientParameters parameters) Returns allConcernedRecipient
s for the provided selection ofEntity
s based on theRecipientParameters
without merging them.
-
Constructor Details
-
RecipientServiceImpl
public RecipientServiceImpl(AddressService addressService, DefaultDisplayService defaultDisplayService)
-
-
Method Details
-
getUnmergedRecipients
public List<ConcernedRecipient> getUnmergedRecipients(EntityList selection, RecipientParameters parameters) throws NoEntityToLoadException Description copied from interface:RecipientService
Returns allConcernedRecipient
s for the provided selection ofEntity
s based on theRecipientParameters
without merging them. This can be used to display (as done in the correspondence dialog) and check the whole collection of targetedEffectiveRecipient
s before they are merged according to the correspondingRecipientParameters.mergeRecipientsByTarget
flag.- Specified by:
getUnmergedRecipients
in interfaceRecipientService
- Parameters:
selection
- the list entities for which theEffectiveRecipient
s will be calculatedparameters
- theRecipientParameters
- Returns:
- the
ConcernedRecipient
s with allConcernedRecipient
s and theirEffectiveRecipient
s - Throws:
NoEntityToLoadException
- See Also:
-
getRecipientsByTarget
public List<CommunicationTarget> getRecipientsByTarget(EntityList selection, RecipientParameters parameters) throws NoEntityToLoadException Description copied from interface:RecipientService
Evaluates and returns allEffectiveRecipient
s arranged as a list ofCommunicationTarget
s based on the selected entities and the providedRecipientParameters
.- Specified by:
getRecipientsByTarget
in interfaceRecipientService
- Parameters:
selection
- the list entities for which theEffectiveRecipient
s will be calculatedparameters
- theRecipientParameters
- Returns:
- the
EffectiveRecipient
s arranged as a list ofCommunicationTarget
s - Throws:
NoEntityToLoadException
-