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

import de.ivu.elect.business.email.entity.EmailLayoutConstants;
import de.ivu.elect.business.security.UseCasePermission;
import de.ivu.elect.presentation.email.EmailLayoutCreateView;

import javax.inject.Inject;
import java.util.Arrays;
import java.util.List;


public class EmailLayoutMenuItemEntry extends AbstractEmailLayoutMenuItemEntry {

  private static final long serialVersionUID = 1L;

  @Inject
  private EmailLayoutSearchMenuItemEntry emailLayoutSearchMenuItemEntry;

  public EmailLayoutMenuItemEntry() {
    super();
  }


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

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

  @Override
  protected List<String> getAdditionalTopicViewIds() {
    return Arrays.asList(EmailLayoutCreateView.VIEW_ID);
  }

  @Override
  public String getLabelKey() {
    return EmailLayoutConstants.MESSAGE_KEY_ENTITY_MEHRZAHL;
  }

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