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

import de.ivu.elect.business.security.UseCasePermission;
import de.ivu.elect.presentation.dokumente.DokumentVorlageCreateView;

public class DokumentVorlageCreateMenuItemEntry extends AbstractDokumentVorlageMenuItemEntry {

  private static final long serialVersionUID = 1L;

  public DokumentVorlageCreateMenuItemEntry() {
    super();
  }

  @Override
  public UseCasePermission getUseCasePermission() {
    return UseCasePermission.DOKUMENT_VORLAGE_CREATE;
  }

  @Override
  public String getTargetViewId() {
    return DokumentVorlageCreateView.VIEW_ID;
  }

  @Override
  public String getLabel() {
    return getMessage(getLabelKey(), getMeta().getEinzahlMessage());
  }

  @Override
  public String getLabelKey() {
    return "entity.create.menu.item.label";
  }

  @Override
  public String getIcon() {
    return getIcons().getIconCreate();
  }
}
