Interface ConcernedRecipient
- All Known Implementing Classes:
ConcernedRecipientImpl
public interface ConcernedRecipient
ConcernedRecipient is the wrapper for the entity evaluated for communication from the entity selected in
the ui. Usually the selected entity is either an Address or Person itself, or it is linked to an
entity of one of those entity models as defined in the properties of the communication action.
In special cases like Application, there is no such target and the address or email information is
gathered from the values on the entity directly.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThe simple representation of aConcernedRecipientto be used for client UI. -
Method Summary
Modifier and TypeMethodDescriptionReturns the client representation for this class used in the ui.Returns the entity on which is wrapped by thisConcernedRecipientis based on.Returns theRecipientParametersdefining how theEffectiveRecipients for thisConcernedRecipienthave to be resolved.Returns the entity selected in the ui on which the evaluation of thisConcernedRecipients was based on.Returns allCommunicationTargets evaluated for thisConcernedRecipientsbooleanbooleanisPerson()booleanisValid()Checks if thisConcernedRecipientcontains at least one validEffectiveRecipient.
-
Method Details
-
isValid
boolean isValid()Checks if thisConcernedRecipientcontains at least one validEffectiveRecipient.- Returns:
trueif valid,falseotherwise- See Also:
-
isPerson
boolean isPerson()- Returns:
trueif based onUser,falseotherwise
-
isAddress
boolean isAddress()- Returns:
trueif based onUser,falseotherwise
-
getSelectedEntity
Entity getSelectedEntity()Returns the entity selected in the ui on which the evaluation of thisConcernedRecipients was based on.- Returns:
- the originally selected entity
-
getConcernedEntity
Entity getConcernedEntity()Returns the entity on which is wrapped by thisConcernedRecipientis based on. Usually it's ofEntityModelUserorAddress, which can be checked usingisPerson()andisAddress(). If it's neither of them, the communication is based onEntityModellikeApplication, where address/email information is gathered from a form.- Returns:
- the concerned entity wrapped by this
ConcernedRecipient
-
getTargets
List<CommunicationTarget> getTargets()Returns allCommunicationTargets evaluated for thisConcernedRecipients- Returns:
- the list of
CommunicationTargets - See Also:
-
getParameters
RecipientParameters getParameters()Returns theRecipientParametersdefining how theEffectiveRecipients for thisConcernedRecipienthave to be resolved.- Returns:
- the
RecipientParameters
-
getClientRepresentation
ConcernedRecipient.ClientRepresentation getClientRepresentation()Returns the client representation for this class used in the ui.- Returns:
- the client representation
-