package com.capgemini.reports.emailing.templates;

/**
 * Email template when a report execution has failed (with a TECHNICAL ERROR) and an email must be sent to the admin.
 */
public class FailedEmailTemplateAdmin extends FailedEmailTemplate {

    private static final String TEMPLATE_LOCATION = "template_email_failed_admin.html";

    /**
     * Prepares an email to be sent to the admins, if a report failed (with a TECHNICAL ERROR).
     *
     * @param completeReportName the full report's name
     * @param postingTime        the time at which the report has been posted
     * @param startTime          the time at which the report qstarted to execute
     * @param failureTime        the time at which the report execution failed
     * @param errorMessage       the error message for the user
     * @param schedulingName
     */
    public FailedEmailTemplateAdmin(final String completeReportName, final String postingTime, final String startTime, final String failureTime,
                                    final String errorMessage, final String schedulingName) {
        super(completeReportName, postingTime, startTime, failureTime, errorMessage, schedulingName);
    }

    public FailedEmailTemplateAdmin(final String completeReportName, final String postingTime, final String startTime, final String failureTime,
                                    final String errorMessage) {
        super(completeReportName, postingTime, startTime, failureTime, errorMessage);
    }

    @Override
    protected String getEmailTemplate() {
        return TEMPLATE_LOCATION;
    }

}
