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

import de.ivu.elect.business.dokumente.entity.DokumentArchiveUploadResultEntry;
import de.ivu.elect.business.dokumente.entity.DokumentVorlageConstants;
import de.ivu.elect.jee.faces.Messages;
import de.ivu.elect.jee.presentation.dynamictable.ColumnType;
import de.ivu.elect.presentation.table.AbstractColumnEntry;

public class DokumentArchiveUploadResultEntryDokumentVorlageArtColumn extends AbstractColumnEntry<DokumentArchiveUploadResultEntry> {

  private static final long serialVersionUID = 1L;

  public DokumentArchiveUploadResultEntryDokumentVorlageArtColumn(Messages messages) {
    super(messages);
  }

  @Override
  public ColumnType getType() {
    return ColumnType.ENUM;
  }

  @Override
  public String getHeader() {
    return getMessage(DokumentVorlageConstants.MESSAGE_KEY_DOKUMENT_VORLAGE_ART_EINZAHL);
  }

  @Override
  public Object getValue(DokumentArchiveUploadResultEntry dokumentArchiveUploadResultEntry) {
    return getMessage(dokumentArchiveUploadResultEntry.getDokumentVorlageArt());
  }
}
