Class RecipientActionServiceImpl
java.lang.Object
ch.tocco.nice2.optional.address.impl.action.RecipientActionServiceImpl
- All Implemented Interfaces:
RecipientActionService
-
Constructor Summary
ConstructorsConstructorDescriptionRecipientActionServiceImpl(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 availableCommunicationRelationTypes (Relation ModelAcceptor.Returns all availableCommunicationRelationTypes (Relation ModelUser_Address_codeWithCommunicationRelationTypes, addresses set on a person can for example be classified as living address or vacation address.Returns all availableCommunicationRelationTypes (Relation ModelUser_user_code).getRecipients(EntityExplorerActionSelection selection, RecipientParameters parameters) Returns a list with allConcernedRecipients and theirEffectiveRecipients for theselectedEntitybased 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:RecipientActionServiceReturns a list with allConcernedRecipients and theirEffectiveRecipients for theselectedEntitybased on the providedRecipientParameters.- Specified by:
getRecipientsin interfaceRecipientActionService- Parameters:
selection- the entities for which the recipients are evaluated.parameters- theRecipientParametersproviding the conditions for evaluating the recipients.- Returns:
- the list containing all
ConcernedRecipients and theirEffectiveRecipients. - Throws:
NoEntityToLoadException- See Also:
-
getActiveCommunicationRelationTypes
-
getPersonalPersonRelationTypes
Description copied from interface:RecipientActionServiceReturns all availableCommunicationRelationTypes (Relation ModelUser_user_code). WithCommunicationRelationTypes, relations between persons like student and teacher or parents and children are described.- Specified by:
getPersonalPersonRelationTypesin interfaceRecipientActionService- Returns:
- the list of
CommunicationRelationTypes.
-
getOrganisationalPersonRelationTypes
Description copied from interface:RecipientActionServiceReturns all availableCommunicationRelationTypes (Relation ModelAcceptor. WithCommunicationRelationTypes, relations like person and the person paying the bills are described.- Specified by:
getOrganisationalPersonRelationTypesin interfaceRecipientActionService- Returns:
- the list of organisational person-person relation types.
-
getPersonalAddressRelationTypes
Description copied from interface:RecipientActionServiceReturns all availableCommunicationRelationTypes (Relation ModelUser_Address_codeWithCommunicationRelationTypes, addresses set on a person can for example be classified as living address or vacation address.- Specified by:
getPersonalAddressRelationTypesin interfaceRecipientActionService- Returns:
- the list of personal person-address relation types.
-
getOrganisationalAddressRelationTypes
public List<AddressService.AddressType.ClientRepresentation> getOrganisationalAddressRelationTypes()Description copied from interface:RecipientActionServiceReturns 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 onAddressentities.- Specified by:
getOrganisationalAddressRelationTypesin interfaceRecipientActionService- Returns:
- the list of organisational person-address relation types.
-