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
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThe simple representation of aEffectiveRecipientto be used for client UI. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns theDefaultDisplayof the address if available.@Nullable StringReturns theAddressas used when generating output if available.Returns a simple representation of theEffectiveRecipientto be used in client UI.@Nullable StringReturns theDefaultDisplayof the person if available.@Nullable StringReturns theSaluationas used when generating output if available.booleanisValid()Checks if thisEffectiveRecipientis valid for the givenCommunicationTypeby checking the presence ofaddressDataoremailData, which is gathered from the underlying entity.voidsetAddressForOutput(String addressForOutput) voidsetSalutationForOutput(String salutationForOutput)
-
Method Details
-
isValid
boolean isValid()Checks if thisEffectiveRecipientis valid for the givenCommunicationTypeby checking the presence ofaddressDataoremailData, which is gathered from the underlying entity.- Returns:
trueif valid,falseotherwise- See Also:
-
getPerson
-
getAddress
-
getEffectiveEntity
Entity getEffectiveEntity() -
getEmailAddress
-
getPersonDisplay
Returns theDefaultDisplayof the person if available. Otherwisenull. -
getAddressDisplay
Returns theDefaultDisplayof the address if available. Otherwisenull. -
getSalutationForOutput
Returns theSaluationas used when generating output if available. Otherwisenull. -
setAddressForOutput
-
getAddressForOutput
Returns theAddressas used when generating output if available. Otherwisenull. -
setSalutationForOutput
-
getClientRepresentation
Returns a simple representation of theEffectiveRecipientto be used in client UI.- Returns:
- the simple
EffectiveRecipientrepresentation - Throws:
PersistException
-
getConcernedRecipient
ConcernedRecipient getConcernedRecipient()
-