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

import javax.annotation.Nullable;

import de.ivu.elect.business.security.UseCasePermission;
import de.ivu.elect.presentation.wahl.WahlterminCopyCreateView;

public class WahlterminCopyAnlegenMenuItemEntry extends AbstractWahlterminMenuItemEntry {

  private static final long serialVersionUID = 1L;

  public WahlterminCopyAnlegenMenuItemEntry() {
    super();
  }

  @Override
  public UseCasePermission getUseCasePermission() {
    return UseCasePermission.WAHLTERMIN_COPY_CREATE;
  }

  @Override
  public boolean isDisabledInternal() {
    return super.isDisabledInternal() || !isWahlterminSelected();
  }

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

  @Override
  public String getLabelKey() {
    return "wahltermin.copy.create";
  }

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