
package de.ivu.elect.presentation.wahl.form;

import javax.inject.Inject;

import de.ivu.elect.business.wahl.entity.WahlParameter;
import de.ivu.elect.jee.presentation.dynamicform.FormBuilder;
import de.ivu.elect.presentation.ViewFormBuilder;
import de.ivu.elect.presentation.konfiguration.form.CustomParameterViewFormBuilder;

public class WahlParameterViewFormBuilder extends ViewFormBuilder {

  private static final long serialVersionUID = 1L;

  @Inject
  private transient CustomParameterViewFormBuilder customParameterViewFormBuilder;

  public WahlParameterViewFormBuilder() {
    super();
  }

  public void addProperties(FormBuilder formBuilder, WahlParameter wahlParameter) {
    customParameterViewFormBuilder.addProperties(formBuilder, wahlParameter, wahlParameter.getProperties().getWertProperty()/* ELECTMUC-3034,
    UseCasePermission.WAHL_PARAMETER_EDIT_SECRETS_CLEAR_TEXT*/);
  }
}
