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

import de.ivu.elect.business.security.UseCasePermission;
import de.ivu.elect.presentation.benutzerverwaltung.RolleCreateView;

public class RolleCreateMenuItemEntry extends AbstractRolleMenuItemEntry {

  private static final long serialVersionUID = 1L;

  public RolleCreateMenuItemEntry() {
    super();
  }

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

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

  @Override
  protected String getLabel() {
    return getMessage(getLabelKey(), getMeta().getEinzahlMessage());
  }

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

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