
package de.ivu.elect.exchange.benutzer.csv;

import java.util.ArrayList;
import java.util.List;

import org.jsefa.csv.annotation.CsvDataType;
import org.jsefa.csv.annotation.CsvField;
import org.jsefa.csv.annotation.CsvSubRecordList;
import org.jsefa.rbf.annotation.Record;

import de.ivu.elect.exchange.benutzer.DefaultRolle;
import de.ivu.jsefa.CsvHeader;

@CsvDataType(defaultPrefix = "ORT")
public class DefaultCsvBenutzerEinsatzort  {

  @CsvField(pos = 1)
  @CsvHeader("Name")
  private String name;

  @CsvField(pos = 2)
  @CsvHeader("Bemerkung")
  private String bemerkung;

  @CsvField(pos = 3)
  @CsvHeader("ClientIpMuster")
  private String clientIpMuster;

  @CsvField(pos = 4)
  @CsvHeader("Besonderheit")
  private String besonderheit;

  @CsvSubRecordList(pos = 4, records = @Record(prefix = "ROL"))
  private List<DefaultRolle> rollen = new ArrayList<>();

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getBemerkung() {
    return bemerkung;
  }

  public void setBemerkung(String bemerkung) {
    this.bemerkung = bemerkung;
  }

  public String getClientIpMuster() {
    return clientIpMuster;
  }

  public void setClientIpMuster(String clientIpMuster) {
    this.clientIpMuster = clientIpMuster;
  }

  public List<DefaultRolle> getRollen() {
    return rollen;
  }

  public void setRollen(List<DefaultRolle> rollen) {
    this.rollen = rollen;
  }

  public String getBesonderheit() {
    return besonderheit;
  }

  public void setBesonderheit(String besonderheit) {
    this.besonderheit = besonderheit;
  }
}
