Class RecipientServiceImpl
java.lang.Object
ch.tocco.nice2.optional.address.impl.RecipientServiceImpl
- All Implemented Interfaces:
RecipientService
-
Constructor Summary
ConstructorsConstructorDescriptionRecipientServiceImpl(AddressService addressService, DefaultDisplayService defaultDisplayService) -
Method Summary
Modifier and TypeMethodDescriptiongetRecipientsByTarget(EntityList selection, RecipientParameters parameters) Evaluates and returns allEffectiveRecipients arranged as a list ofCommunicationTargets based on the selected entities and the providedRecipientParameters.getUnmergedRecipients(EntityList selection, RecipientParameters parameters) Returns allConcernedRecipients for the provided selection ofEntitys based on theRecipientParameterswithout 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:RecipientServiceReturns allConcernedRecipients for the provided selection ofEntitys based on theRecipientParameterswithout merging them. This can be used to display (as done in the correspondence dialog) and check the whole collection of targetedEffectiveRecipients before they are merged according to the correspondingRecipientParameters.mergeRecipientsByTargetflag.- Specified by:
getUnmergedRecipientsin interfaceRecipientService- Parameters:
selection- the list entities for which theEffectiveRecipients will be calculatedparameters- theRecipientParameters- Returns:
- the
ConcernedRecipients with allConcernedRecipients and theirEffectiveRecipients - Throws:
NoEntityToLoadException- See Also:
-
getRecipientsByTarget
public List<CommunicationTarget> getRecipientsByTarget(EntityList selection, RecipientParameters parameters) throws NoEntityToLoadException Description copied from interface:RecipientServiceEvaluates and returns allEffectiveRecipients arranged as a list ofCommunicationTargets based on the selected entities and the providedRecipientParameters.- Specified by:
getRecipientsByTargetin interfaceRecipientService- Parameters:
selection- the list entities for which theEffectiveRecipients will be calculatedparameters- theRecipientParameters- Returns:
- the
EffectiveRecipients arranged as a list ofCommunicationTargets - Throws:
NoEntityToLoadException
-