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

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

public class DokumentVorlageSearchMenuItemEntry extends AbstractDokumentVorlageMenuItemEntry {

  private static final long serialVersionUID = 1L;

  public DokumentVorlageSearchMenuItemEntry() {
    super();
  }

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

  @Override
  public String getTargetViewId() {
    return DokumentVorlageSearchView.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();
  }
}
