Class Email
Object
se.curity.identityserver.sdk.data.email.Email
This is a container for the data model used for constructing emails.
- Since:
- 2.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new Email with the given model.Constructs a new Email with the given model and subject.Constructs a new Email with the given model, subject, and with specific locale.Constructs a new Email with the given model and with specific locale. -
Method Summary
-
Constructor Details
-
Email
Constructs a new Email with the given model.- Parameters:
model- the data model of the Email
-
Email
Constructs a new Email with the given model and with specific locale. If available, this overrides whatever locale the system had selected. The locale is used when rendering the templates in the #message directive.- Parameters:
model- the data model of the EmailpreferredLocale- the preferred locale for the email- Since:
- 2.2.0
-
Email
Constructs a new Email with the given model and subject.- Parameters:
model- the data model of this emailsubject- the subject of this email- Since:
- 5.2.0
-
Email
Constructs a new Email with the given model, subject, and with specific locale. If available, this overrides whatever locale the system had selected. The locale is used when rendering the templates in the #message directive.- Parameters:
model- the data model of this emailsubject- the subject of this emailpreferredLocale- the preferred locale for this email- Since:
- 5.2.0
-
-
Method Details
-
getModel
Returns the data model of the email.- Returns:
- the data model of the Email
-
getSubject
Returns the subject of this email.- Returns:
- the subject of this email
- Since:
- 5.2.0
-
getPreferredLocale
The preferred locale to use when rendering this email If null, the default locale of the system, or context should be used.- Returns:
- The preferred locale to use when rendering this email
- Since:
- 2.2.0
-
equals
-
hashCode
public int hashCode()
-