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

import java.util.Collections;
import java.util.List;

import javax.inject.Named;

import de.ivu.elect.business.security.UseCasePermission;

@Named(SystemLogDeleteAllMenuItemEntry.COMPONENT_NAME)
public class SystemLogDeleteAllMenuItemEntry extends AbstractSystemLogMenuItemEntry {

  private static final long serialVersionUID = 1L;

  public static final String COMPONENT_NAME = "systemLogDeleteAllMenuItemEntry";

  public SystemLogDeleteAllMenuItemEntry() {
    super();
  }

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

  @Override
  protected boolean isAjax() {
    return true;
  }

  @Override
  public String getTargetViewId() {
    return null;
  }

  @Override
  public String getDialogName() {
    return "DeleteConfirmAll";
  }

  @Override
  public String getLabelKey() {
    return "system.log.edit.action.delete.all.entities";
  }

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

  @Override
  protected List<String> getAdditionalTopicViewIds() {
    return Collections.singletonList("");
  }
}
