Interface IEmailTemplate
-
@StableMinor(version="14.0", sinceVersion="11.2") public interface IEmailTemplate
Represents an email template.- Since:
- 11.2.0
- Version:
- $Revision: 24476 $ $Date: 2021-04-28 11:28:23 -0300 (Wed, 28 Apr 2021) $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ISingleMail
format(IEmailTemplateVariableResolver variableResolver)
Returns the formated email.String
getBodyTemplate()
Returns the body template.String
getId()
Returns the identifier of the template.Set<String>
getRequiredVariables()
Returns the variables this template needs to be fully filled.String
getSenderAddressTemplate()
Returns the sender address template.String
getServiceInstanceId()
Returns the identifier of the service instance in witch the template was created on.String
getSubjectTemplate()
Returns the subject template.String
getTitle()
Returns the (informative only) title of the template.
-
-
-
Method Detail
-
getId
String getId()
Returns the identifier of the template.- Returns:
- the identifier of the template.
- Since:
- 11.2.0
-
getSubjectTemplate
String getSubjectTemplate()
Returns the subject template.- Returns:
- the subject template.
- Since:
- 11.2.0
-
getTitle
String getTitle()
Returns the (informative only) title of the template.- Returns:
- the (informative only) title of the template.
- Since:
- 11.2.0
-
getBodyTemplate
String getBodyTemplate()
Returns the body template.- Returns:
- the HTML source of the body template.
- Since:
- 11.2.0
-
getSenderAddressTemplate
String getSenderAddressTemplate()
Returns the sender address template.- Returns:
- the sender address template.
- Since:
- 11.2.0
-
getServiceInstanceId
String getServiceInstanceId()
Returns the identifier of the service instance in witch the template was created on.- Returns:
- the identifier of the service instance in witch the template was created on.
- Since:
- 11.2.0
-
getRequiredVariables
Set<String> getRequiredVariables()
Returns the variables this template needs to be fully filled.- Returns:
- the variables this template needs to be fully filled.
- Since:
- 11.2.0
-
format
ISingleMail format(IEmailTemplateVariableResolver variableResolver) throws UnresolvedVariableException, PortalException
Returns the formated email.- Parameters:
variableResolver
- the variable resolver.- Returns:
- the formated email.
- Throws:
UnresolvedVariableException
- if some variable couldn't be resolved.PortalException
- if some other error occur.- Since:
- 11.2.0
-
-