Package de.xima.fc.mail.utils
Class UserMailUtil
java.lang.Object
de.xima.fc.mail.utils.UserMailUtil
E-Mail zur Benachrichtigung eines Benutzers über die Erstellung/Änderung seines Kontos.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic booleansendEmailVerificationMail(IEntityContext ec, UserEmail email, String baseUrl) static booleansendLDAPLogin(IEntityContext ec, Benutzer user) Deprecated.static booleansendLoginData(IEntityContext ec, Benutzer user, String password) Deprecated.static booleansendPrimaryEmailChangeMail(IEntityContext ec, UserEmail email, String baseUrl) static booleansendResetPassword(IEntityContext ec, Benutzer user, String resetPasswordUrl) Deprecated.static booleansendSystemLogin(IEntityContext ec, Benutzer user, String password) Deprecated.static booleansendUserCredentialsResetMail(IEntityContext ec, UserProfile profile, String baseUrl) static booleansendUserCredentialsResetMail(IEntityContext ec, UserProfile profile, String baseUrl, String verifiedTargetEmailAddress) static booleansendUserIdentityConnectedMail(IEntityContext ec, UserIdentity identity, String connectorEmail, Instant isntant, String remoteAddr, String userAgent, String baseUrl) static booleansendUserIdentityRemovalMail(IEntityContext ec, UserIdentity identity, String baseUrl) static booleansendUserInvitationMail(IEntityContext ec, DirectClientAuthorization authorization) Sends an invitation mail to anDirectClientAuthorization.static booleansendUserInvitationMail(IEntityContext ec, DirectClientAuthorization authorization, String baseUrl) static booleansendUserMfaEmailCodeMail(IUser user, Locale defaultLocale) static booleansendUserMfaRemovalMail(IEntityContext ec, UserProfileMfa mfaConfig, String baseUrl) static booleansendUserMfaTotpRegistrationMail(IEntityContext ec, UserProfileMfa mfaConfig, String baseUrl) static booleansendUserProfileDeleteRequestMail(IEntityContext ec, UserProfile userProfile, String baseUrl) static booleansendUserProfileMergeRequestMail(IEntityContext ec, UserProfile userProfile, UserProfile toBeMerged, String baseUrl) static booleansendUserProfileWelcomeMail(IEntityContext ec, UserProfile userProfile, String baseUrl) Sends an email to the primary email address of the user welcoming them and informing them that their profile has been created.static booleansendUserSetPassword(IEntityContext ec, Benutzer user, String setPasswordUrl) Deprecated.
-
Method Details
-
sendUserCredentialsResetMail
public static boolean sendUserCredentialsResetMail(IEntityContext ec, UserProfile profile, String baseUrl) -
sendUserCredentialsResetMail
public static boolean sendUserCredentialsResetMail(IEntityContext ec, UserProfile profile, String baseUrl, String verifiedTargetEmailAddress) -
sendEmailVerificationMail
-
sendPrimaryEmailChangeMail
public static boolean sendPrimaryEmailChangeMail(IEntityContext ec, UserEmail email, String baseUrl) -
sendUserIdentityConnectedMail
public static boolean sendUserIdentityConnectedMail(IEntityContext ec, UserIdentity identity, String connectorEmail, Instant isntant, String remoteAddr, String userAgent, String baseUrl) -
sendUserIdentityRemovalMail
public static boolean sendUserIdentityRemovalMail(IEntityContext ec, UserIdentity identity, String baseUrl) -
sendUserProfileWelcomeMail
public static boolean sendUserProfileWelcomeMail(IEntityContext ec, UserProfile userProfile, String baseUrl) Sends an email to the primary email address of the user welcoming them and informing them that their profile has been created.- Parameters:
ec- entity context for database transactions.userProfile- that has been created with the primary email address of the user.baseUrl- base URL to use when building URLs.- Returns:
trueif the email was sent successfully andfalseotherwise.- Since:
- 8.0.4
-
sendUserProfileMergeRequestMail
public static boolean sendUserProfileMergeRequestMail(IEntityContext ec, UserProfile userProfile, UserProfile toBeMerged, String baseUrl) -
sendUserProfileDeleteRequestMail
public static boolean sendUserProfileDeleteRequestMail(IEntityContext ec, UserProfile userProfile, String baseUrl) -
sendUserMfaTotpRegistrationMail
public static boolean sendUserMfaTotpRegistrationMail(IEntityContext ec, UserProfileMfa mfaConfig, String baseUrl) -
sendUserMfaRemovalMail
public static boolean sendUserMfaRemovalMail(IEntityContext ec, UserProfileMfa mfaConfig, String baseUrl) -
sendUserMfaEmailCodeMail
-
sendUserInvitationMail
public static boolean sendUserInvitationMail(IEntityContext ec, DirectClientAuthorization authorization) Sends an invitation mail to anDirectClientAuthorization.- Parameters:
ec- entity contextauthorization- authorization with data for mail- Returns:
- if the sending was successful or not.
-
readDefaultSystemEmailTemplate
-
sendLoginData
Deprecated.Verschickt die E-Mail.- Parameters:
ec- the entity context to useruser- Der betreffende Benutzer.
-
sendSystemLogin
@Deprecated public static boolean sendSystemLogin(IEntityContext ec, Benutzer user, String password) Deprecated. -
sendLDAPLogin
Deprecated. -
sendResetPassword
@Deprecated public static boolean sendResetPassword(IEntityContext ec, Benutzer user, String resetPasswordUrl) Deprecated.- Parameters:
user- der BenutzerresetPasswordUrl- die URL zum Reset des Passwortes- Returns:
Booleanif the mail was send successfully
-
sendUserSetPassword
@Deprecated public static boolean sendUserSetPassword(IEntityContext ec, Benutzer user, String setPasswordUrl) Deprecated. -
sendUserInvitationMail
@Deprecated public static boolean sendUserInvitationMail(IEntityContext ec, DirectClientAuthorization authorization, String baseUrl) Sends an invitation mail to anDirectClientAuthorization.- Parameters:
ec- entity contextauthorization- authorization with data for mailbaseUrl- base url for links in the mail- Returns:
- if the sending was successful or not.
-
sendUserCredentialsResetMail(IEntityContext, UserProfile, String)instead.