Interface RecipientActionService
- All Known Implementing Classes:
RecipientActionServiceImpl
public interface RecipientActionService
RecipientActionService
for retrieving recipients for a selection of entities based on various criteria.
If the CorrespondenceActionService
or MailActionService
are called in extended mode, the
correspondence or mail can not only be created for the selected entities, but also for persons related to the
selected entities.
This way, the correspondence can be created for the concerned entity, but also for it's parents, children and so on.
If the ConcernedRecipient
itself is selected as one of the EffectiveRecipient
, the address to use for the correspondence to the
concerned entity can be chosen as well.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the client representation of all available organisational Person-Address relation types as they can be flagged on a person-address relation like the address to which the bills are sent.Returns all availableCommunicationRelationType
s (Relation ModelAcceptor
.Returns all availableCommunicationRelationType
s (Relation ModelUser_Address_code
WithCommunicationRelationType
s, addresses set on a person can for example be classified as living address or vacation address.Returns all availableCommunicationRelationType
s (Relation ModelUser_user_code
).getRecipients
(EntityExplorerActionSelection selection, RecipientParameters parameters) Returns a list with allConcernedRecipient
s and theirEffectiveRecipient
s for theselectedEntity
based on the providedRecipientParameters
.
-
Method Details
-
getRecipients
List<ConcernedRecipient.ClientRepresentation> getRecipients(EntityExplorerActionSelection selection, RecipientParameters parameters) throws NoEntityToLoadException Returns a list with allConcernedRecipient
s and theirEffectiveRecipient
s for theselectedEntity
based on the providedRecipientParameters
.- Parameters:
selection
- the entities for which the recipients are evaluated.parameters
- theRecipientParameters
providing the conditions for evaluating the recipients.- Returns:
- the list containing all
ConcernedRecipient
s and theirEffectiveRecipient
s. - Throws:
NoEntityToLoadException
- See Also:
-
getPersonalPersonRelationTypes
List<CommunicationRelationType> getPersonalPersonRelationTypes()Returns all availableCommunicationRelationType
s (Relation ModelUser_user_code
). WithCommunicationRelationType
s, relations between persons like student and teacher or parents and children are described.- Returns:
- the list of
CommunicationRelationType
s.
-
getOrganisationalPersonRelationTypes
List<CommunicationRelationType> getOrganisationalPersonRelationTypes()Returns all availableCommunicationRelationType
s (Relation ModelAcceptor
. WithCommunicationRelationType
s, relations like person and the person paying the bills are described.- Returns:
- the list of organisational person-person relation types.
-
getPersonalAddressRelationTypes
List<CommunicationRelationType> getPersonalAddressRelationTypes()Returns all availableCommunicationRelationType
s (Relation ModelUser_Address_code
WithCommunicationRelationType
s, addresses set on a person can for example be classified as living address or vacation address.- Returns:
- the list of personal person-address relation types.
-
getOrganisationalAddressRelationTypes
List<AddressService.AddressType.ClientRepresentation> getOrganisationalAddressRelationTypes() throws NoEntityToLoadExceptionReturns the client representation of all available organisational Person-Address relation types as they can be flagged on a person-address relation like the address to which the bills are sent. This is not an actually existing relation entity in the model, but a helper to manage various address-type flags onAddress
entities.- Returns:
- the list of organisational person-address relation types.
- Throws:
NoEntityToLoadException
-