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

import static java.util.Arrays.asList;

import java.util.List;

import de.ivu.elect.business.security.UseCasePermission;
import de.ivu.elect.presentation.staat.StaatCreateView;
import de.ivu.elect.presentation.staat.StaatSearchView;
import de.ivu.elect.presentation.staat.exchange.StaatExportView;
import de.ivu.elect.presentation.staat.exchange.StaatImportBestaetigenView;
import de.ivu.elect.presentation.staat.exchange.StaatImportFormatFestlegenView;
import de.ivu.elect.presentation.staat.exchange.StaatImportSearchView;

public class StaatMenuItemEntry extends AbstractStaatMenuItemEntry {

  private static final long serialVersionUID = 1L;

  public StaatMenuItemEntry() {
    super();
  }

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

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

  @Override
  protected List<String> getAdditionalTopicViewIds() {
    return asList(StaatCreateView.VIEW_ID, StaatImportSearchView.VIEW_ID, StaatImportFormatFestlegenView.VIEW_ID, StaatImportBestaetigenView.VIEW_ID, StaatExportView.VIEW_ID);
  }

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

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