
package de.ivu.elect.presentation.dokumente;

import java.util.List;

import javax.inject.Inject;
import javax.inject.Named;

import de.ivu.elect.business.datei.entity.FileType;
import de.ivu.elect.presentation.hilfe.OnlineHilfeId;

@OnlineHilfeId("171")
@Named(AbstractDokumentVorlageCreateNoScopeView.COMPONENT_NAME)
public class DokumentVorlageCreateView extends AbstractElectDokumentVorlageCreateView {

  private static final long serialVersionUID = 1L;

  @Inject
  private transient DokumentVorlageCreateAllowedFileTypes dokumentVorlageCreateAllowedFileTypes;

  public DokumentVorlageCreateView() {
    super();
  }

  @Override
  protected String getAllowedFileTypeNames() {
    return dokumentVorlageCreateAllowedFileTypes.getAllowedFileTypeNames();
  }

  @Override
  public String getFileUploadAllowTypes() {
    return dokumentVorlageCreateAllowedFileTypes.getAllowedFileTypeRegEx();
  }

  @Override
  public String getFileUploadAccept() {
    return dokumentVorlageCreateAllowedFileTypes.getAllowedFileTypeHtmlAccept();
  }

  @Override
  public List<FileType> getFileUploadFileTypes() {
    return dokumentVorlageCreateAllowedFileTypes.getAllowedFileTypes();
  }
}
