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

import java.util.Arrays;
import java.util.List;

import javax.inject.Inject;

import de.ivu.elect.business.security.UseCasePermission;
import de.ivu.elect.presentation.mandant.MandantCreateView;
import de.ivu.elect.presentation.mandant.MandantEditView;

public class MandantenverwaltungMenuItemEntry extends AbstractMandantMenuItemEntry {

  private static final long serialVersionUID = 1L;

  @Inject
  private MandantSearchMenuItemEntry mandantSearchMenuItemEntry;

  public MandantenverwaltungMenuItemEntry() {
    super();
  }

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

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

  @Override
  protected List<String> getAdditionalTopicViewIds() {
    return Arrays.asList(MandantCreateView.VIEW_ID, MandantEditView.VIEW_ID);
  }

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

  @Override
  public String getIcon() {
    return "fa fa-sitemap";
  }
}
