
package de.ivu.elect.presentation.email.table;

import de.ivu.elect.business.email.boundary.EmailExtendedDAO;
import de.ivu.elect.business.email.entity.EmailStatusType;
import de.ivu.elect.business.email.entity.EmailVorgang;
import de.ivu.elect.jee.faces.Messages;
import de.ivu.elect.jee.presentation.dynamictable.ColumnType;

public class EmailVorgangAnzahlEmailsVersendetColumn<E extends EmailVorgang> extends AbstractEmailVorgangColumn<E> {

  private static final long serialVersionUID = 1L;

  public EmailVorgangAnzahlEmailsVersendetColumn(Messages messages, EmailExtendedDAO emailExtendedDAO) {
    super("EmailVorgang-AnzahlEmailsVersendet", messages, "email.vorgang.column.emails.versendet", ColumnType.LONG,
        emailVorgang -> emailExtendedDAO.findByCountEmailVorgangAndStatus(emailVorgang, EmailStatusType.VERSENDET));
  }
}
