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

import javax.annotation.Nullable;
import javax.inject.Named;

import de.ivu.elect.business.security.UseCasePermission;
import de.ivu.elect.presentation.menu.AbstractMenuItemEntry;
import de.ivu.elect.presentation.security.AbstractGebietSecurity;
import de.ivu.elect.presentation.stimmzettel.StimmzettelWesImportView;

@Named(StimmzettelWesImportMenuItem.COMPONENT_NAME)
public class StimmzettelWesImportMenuItem  extends AbstractMenuItemEntry {

  public static final String COMPONENT_NAME ="stimmzettelWesImportMenuItem";


  private static final long serialVersionUID = 1L;

  @Override
  protected boolean isDisabledInternal() {
    return false;
  }

  @Override
  protected AbstractGebietSecurity getGebietSecurity() {
    return AbstractGebietSecurity.KEINE_GEBIET_SECURITY;
  }

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

  @Override
  public boolean isRendered() {
    return hasUseCasePermission(UseCasePermission.STIMMZETTEL_WES_IMPORTIEREN);
  }

  @Override
  public String getLabelKey() {
    return "stimmzettel.wes.import.menu.item";
  }

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