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

import de.ivu.elect.business.security.UseCasePermission;
import de.ivu.elect.presentation.email.EmailLayoutCreateView;

public class EmailLayoutCreateMenuItemEntry extends AbstractEmailLayoutMenuItemEntry {

  private static final long serialVersionUID = 1L;

  public EmailLayoutCreateMenuItemEntry() {
    super();
  }

  @Override
  protected UseCasePermission getUseCasePermission() {
    return UseCasePermission.EMAIL_LAYOUT_CREATE;
  }

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

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

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

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