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

import de.ivu.elect.business.security.UseCasePermission;
import de.ivu.elect.presentation.menu.AbstractMenuItemEntry;
import de.ivu.elect.presentation.person.BerufCreateView;
import de.ivu.elect.presentation.security.AbstractGebietSecurity;

public class BerufCreateMenuItemEntry extends AbstractMenuItemEntry {

  private static final long serialVersionUID = 1L;

  public BerufCreateMenuItemEntry() {
    super();
  }

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

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

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

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

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

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