All Downloads are FREE. Search and download functionalities are using the official Maven repository.

woko.ext.usermanagement.mail.MailTemplateResetPassword Maven / Gradle / Ivy

There is a newer version: 2.4-beta7
Show newest version
package woko.ext.usermanagement.mail;

import woko.Woko;
import woko.mail.PropertyBasedMailTemplate;

import java.util.*;

import static woko.ext.usermanagement.mail.BindingHelper.*;

public class MailTemplateResetPassword extends BaseMailTemplate {

    public static final String RESET_PASSWORD_URL = "resetUrl";
    public static final String TEMPLATE_NAME = "resetPassword";

    public MailTemplateResetPassword() {
        super("woko.ext.usermanagement.password.reset.email.subject","woko.ext.usermanagement.password.reset.email.content");
    }

    @Override
    protected List getArgsBody(Woko woko, Locale locale, Map binding) {
        String resetUrl = getBindingValueSafe(binding, RESET_PASSWORD_URL);
        List args = new ArrayList(super.getArgsBody(woko, locale, binding));
        args.add(resetUrl);
        return args;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy