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:
  • Method Details Link icon

    • isValid Link icon

      boolean isValid()
      Checks if this EffectiveRecipient is valid for the given CommunicationType by checking the presence of addressData or emailData, which is gathered from the underlying entity.
      Returns:
      true if valid, false otherwise
      See Also:
    • getPerson Link icon

      Optional<Entity> getPerson()
    • getAddress Link icon

      Optional<Entity> getAddress()
    • getEffectiveEntity Link icon

      Entity getEffectiveEntity()
    • getEmailAddress Link icon

      Optional<String> getEmailAddress()
    • getPersonDisplay Link icon

      @Nullable @Nullable String getPersonDisplay()
      Returns the DefaultDisplay of the person if available. Otherwise null.
    • getAddressDisplay Link icon

      @Nullable @Nullable String getAddressDisplay()
      Returns the DefaultDisplay of the address if available. Otherwise null.
    • getSalutationForOutput Link icon

      @Nullable @Nullable String getSalutationForOutput()
      Returns the Saluation as used when generating output if available. Otherwise null.
    • setAddressForOutput Link icon

      void setAddressForOutput(String addressForOutput)
    • getAddressForOutput Link icon

      @Nullable @Nullable String getAddressForOutput()
      Returns the Address as used when generating output if available. Otherwise null.
    • setSalutationForOutput Link icon

      void setSalutationForOutput(String salutationForOutput)
    • getClientRepresentation Link icon

      Returns a simple representation of the EffectiveRecipient to be used in client UI.
      Returns:
      the simple EffectiveRecipient representation
      Throws:
      PersistException
    • getConcernedRecipient Link icon

      ConcernedRecipient getConcernedRecipient()