Class RecipientActionServiceImpl
java.lang.Object
ch.tocco.nice2.optional.address.impl.action.RecipientActionServiceImpl
- All Implemented Interfaces:
RecipientActionService
-
Constructor Summary
ConstructorDescriptionRecipientActionServiceImpl
(Context context, RecipientService recipientService, EntityExplorerActionSelectionService selectionService, DefaultDisplayService defaultDisplayService, TextResources textResources, QueryBuilderFactory queryBuilderFactory) -
Method Summary
Modifier and TypeMethodDescriptiongetActiveCommunicationRelationTypes
(String entityModel) Returns 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
.
-
Constructor Details
-
RecipientActionServiceImpl
public RecipientActionServiceImpl(Context context, RecipientService recipientService, EntityExplorerActionSelectionService selectionService, DefaultDisplayService defaultDisplayService, TextResources textResources, QueryBuilderFactory queryBuilderFactory)
-
-
Method Details
-
getRecipients
public List<ConcernedRecipient.ClientRepresentation> getRecipients(EntityExplorerActionSelection selection, RecipientParameters parameters) throws NoEntityToLoadException Description copied from interface:RecipientActionService
Returns a list with allConcernedRecipient
s and theirEffectiveRecipient
s for theselectedEntity
based on the providedRecipientParameters
.- Specified by:
getRecipients
in interfaceRecipientActionService
- 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:
-
getActiveCommunicationRelationTypes
-
getPersonalPersonRelationTypes
Description copied from interface:RecipientActionService
Returns all availableCommunicationRelationType
s (Relation ModelUser_user_code
). WithCommunicationRelationType
s, relations between persons like student and teacher or parents and children are described.- Specified by:
getPersonalPersonRelationTypes
in interfaceRecipientActionService
- Returns:
- the list of
CommunicationRelationType
s.
-
getOrganisationalPersonRelationTypes
Description copied from interface:RecipientActionService
Returns all availableCommunicationRelationType
s (Relation ModelAcceptor
. WithCommunicationRelationType
s, relations like person and the person paying the bills are described.- Specified by:
getOrganisationalPersonRelationTypes
in interfaceRecipientActionService
- Returns:
- the list of organisational person-person relation types.
-
getPersonalAddressRelationTypes
Description copied from interface:RecipientActionService
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.- Specified by:
getPersonalAddressRelationTypes
in interfaceRecipientActionService
- Returns:
- the list of personal person-address relation types.
-
getOrganisationalAddressRelationTypes
public List<AddressService.AddressType.ClientRepresentation> getOrganisationalAddressRelationTypes()Description copied from interface:RecipientActionService
Returns 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.- Specified by:
getOrganisationalAddressRelationTypes
in interfaceRecipientActionService
- Returns:
- the list of organisational person-address relation types.
-