Package ch.tocco.nice2.userbase.impl
Class EmailTemplateImpl
java.lang.Object
ch.tocco.nice2.userbase.impl.EmailTemplateImpl
- All Implemented Interfaces:
EmailTemplate
-
Constructor Details
-
EmailTemplateImpl
-
-
Method Details
-
getSupportedEntities
- Specified by:
getSupportedEntities
in interfaceEmailTemplate
-
getDescription
- Specified by:
getDescription
in interfaceEmailTemplate
-
getSender
- Specified by:
getSender
in interfaceEmailTemplate
-
getSenderEmail
- Specified by:
getSenderEmail
in interfaceEmailTemplate
-
getSenderName
- Specified by:
getSenderName
in interfaceEmailTemplate
-
getSubject
- Specified by:
getSubject
in interfaceEmailTemplate
-
getReplyTo
- Specified by:
getReplyTo
in interfaceEmailTemplate
-
getReceiver
- Specified by:
getReceiver
in interfaceEmailTemplate
-
getRecipient
- Specified by:
getRecipient
in interfaceEmailTemplate
- Returns:
- the recipient entity or
Optional.empty()
if not set. - Throws:
PersistException
-
getCc
- Specified by:
getCc
in interfaceEmailTemplate
-
getCcRecipients
Description copied from interface:EmailTemplate
Get cc recipients. Note: this is the list of User entities linked to the the email template. There may be more cc recipients available throughEmailTemplate.getCc()
.- Specified by:
getCcRecipients
in interfaceEmailTemplate
- Returns:
- entity list of cc recipient users
- Throws:
PersistException
-
getBcc
- Specified by:
getBcc
in interfaceEmailTemplate
-
getBccRecipients
Description copied from interface:EmailTemplate
Get bcc recipients. Note: this is the list of User entities linked to the the email template. There may be more bcc recipients available throughEmailTemplate.getBcc()
.- Specified by:
getBccRecipients
in interfaceEmailTemplate
- Returns:
- entity list of cc recipient users
- Throws:
PersistException
-
getText
- Specified by:
getText
in interfaceEmailTemplate
- Returns:
- HTML formatted content.
-
getPlainText
- Specified by:
getPlainText
in interfaceEmailTemplate
-
getLocalizedValueMap
Description copied from interface:EmailTemplate
Get the localized value map from template entity.- Specified by:
getLocalizedValueMap
in interfaceEmailTemplate
- Returns:
- localized value map
- Throws:
PersistException
-
getDelegate
- Specified by:
getDelegate
in interfaceEmailTemplate
-
getExpiryDate
@Nullable public @Nullable org.joda.time.LocalDate getExpiryDate()- Specified by:
getExpiryDate
in interfaceEmailTemplate
-