package de.ivu.elect.presentation.statistik;

import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.inject.Named;

import de.ivu.elect.business.security.UseCasePermission;
import de.ivu.elect.business.statistik.entity.StatistikLauf;
import de.ivu.elect.jee.presentation.dynamicform.FormBuilder;
import de.ivu.elect.presentation.View;
import de.ivu.elect.presentation.hilfe.OnlineHilfeId;
import de.ivu.elect.presentation.statistik.form.StatistikLaufViewFormBuilder;

/**
 *  on 30.01.2017.
 */
@OnlineHilfeId(value = "658")
@RequestScoped
@Named(AbstractStatistikLaufEditNoScopeView.COMPONENT_NAME)
@View(viewId = AbstractStatistikLaufEditNoScopeView.VIEW_ID, useCase = UseCasePermission.STATISTIK_LAUF_EDIT)
public class StatistikLaufEditView extends AbstractStatistikLaufEditView {

  @Inject
  StatistikLaufViewFormBuilder statistikLaufViewFormBuilder;

  @Override
  protected void addProperties(FormBuilder formBuilder, StatistikLauf entity) {
    statistikLaufViewFormBuilder.addProperties(formBuilder, entity);
  }

  @Override
  protected boolean isGebietBearbeitenRechtPruefen() {
    return false;
  }
}
