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

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

public class EmailLayoutSearchMenuItemEntry extends AbstractEmailLayoutMenuItemEntry {

  private static final long serialVersionUID = 1L;

  public EmailLayoutSearchMenuItemEntry() {
    super();
  }

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

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

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

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

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