Interface EffectiveRecipient
- All Known Implementing Classes:
EffectiveRecipientImpl
public interface EffectiveRecipient
EffectiveRecipient
is a wrapper for a Person
or Address
entity to be used as delegate for the
ConcernedRecipient
.- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
The simple representation of aEffectiveRecipient
to be used for client UI. -
Method Summary
Modifier and TypeMethodDescription@Nullable String
Returns theDefaultDisplay
of the address if available.@Nullable String
Returns theAddress
as used when generating output if available.Returns a simple representation of theEffectiveRecipient
to be used in client UI.@Nullable String
Returns theDefaultDisplay
of the person if available.@Nullable String
Returns theSaluation
as used when generating output if available.boolean
isValid()
Checks if thisEffectiveRecipient
is valid for the givenCommunicationType
by checking the presence ofaddressData
oremailData
, which is gathered from the underlying entity.void
setAddressForOutput
(String addressForOutput) void
setSalutationForOutput
(String salutationForOutput)
-
Method Details
-
isValid
boolean isValid()Checks if thisEffectiveRecipient
is valid for the givenCommunicationType
by checking the presence ofaddressData
oremailData
, which is gathered from the underlying entity.- Returns:
true
if valid,false
otherwise- See Also:
-
getPerson
-
getAddress
-
getEffectiveEntity
Entity getEffectiveEntity() -
getEmailAddress
-
getPersonDisplay
Returns theDefaultDisplay
of the person if available. Otherwisenull
. -
getAddressDisplay
Returns theDefaultDisplay
of the address if available. Otherwisenull
. -
getSalutationForOutput
Returns theSaluation
as used when generating output if available. Otherwisenull
. -
setAddressForOutput
-
getAddressForOutput
Returns theAddress
as used when generating output if available. Otherwisenull
. -
setSalutationForOutput
-
getClientRepresentation
Returns a simple representation of theEffectiveRecipient
to be used in client UI.- Returns:
- the simple
EffectiveRecipient
representation - Throws:
PersistException
-
getConcernedRecipient
ConcernedRecipient getConcernedRecipient()
-