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
Modifier and TypeInterfaceDescriptionstatic class
The simple representation of aConcernedRecipient
to 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 thisConcernedRecipient
is based on.Returns theRecipientParameters
defining how theEffectiveRecipient
s for thisConcernedRecipient
have to be resolved.Returns the entity selected in the ui on which the evaluation of thisConcernedRecipient
s was based on.Returns allCommunicationTarget
s evaluated for thisConcernedRecipient
sboolean
boolean
isPerson()
boolean
isValid()
Checks if thisConcernedRecipient
contains at least one validEffectiveRecipient
.
-
Method Details
-
isValid
boolean isValid()Checks if thisConcernedRecipient
contains at least one validEffectiveRecipient
.- Returns:
true
if valid,false
otherwise- See Also:
-
isPerson
boolean isPerson()- Returns:
true
if based onUser
,false
otherwise
-
isAddress
boolean isAddress()- Returns:
true
if based onUser
,false
otherwise
-
getSelectedEntity
Entity getSelectedEntity()Returns the entity selected in the ui on which the evaluation of thisConcernedRecipient
s was based on.- Returns:
- the originally selected entity
-
getConcernedEntity
Entity getConcernedEntity()Returns the entity on which is wrapped by thisConcernedRecipient
is based on. Usually it's ofEntityModel
User
orAddress
, which can be checked usingisPerson()
andisAddress()
. If it's neither of them, the communication is based onEntityModel
likeApplication
, where address/email information is gathered from a form.- Returns:
- the concerned entity wrapped by this
ConcernedRecipient
-
getTargets
List<CommunicationTarget> getTargets()Returns allCommunicationTarget
s evaluated for thisConcernedRecipient
s- Returns:
- the list of
CommunicationTarget
s - See Also:
-
getParameters
RecipientParameters getParameters()Returns theRecipientParameters
defining how theEffectiveRecipient
s for thisConcernedRecipient
have 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
-