LaadprocesTransformatieProces.java

  1. /*
  2.  * Copyright (C) 2016 B3Partners B.V.
  3.  */
  4. package nl.b3p.brmo.persistence.staging;

  5. import java.util.ArrayList;
  6. import java.util.Collections;
  7. import java.util.List;
  8. import javax.persistence.Entity;

  9. /**
  10.  * @author mprins
  11.  */
  12. @Entity
  13. public class LaadprocesTransformatieProces extends AutomatischProces {

  14.   public String getSoort() {
  15.     return ClobElement.nullSafeGet(this.getConfig().get("laadprocessoort"));
  16.   }

  17.   public boolean alsStandTransformeren() {
  18.     String alsStand = ClobElement.nullSafeGet(this.getConfig().get("versneldtransformeren"));
  19.     return "true".equals(alsStand);
  20.   }

  21.   /** soorten laadproces waar we iets mee kunnen. */
  22.   public enum LaadprocesSoorten {
  23.     BR_TOPNL("topnl");

  24.     private static final ArrayList<String> soorten = new ArrayList();

  25.     static {
  26.       for (LaadprocesSoorten s : values()) {
  27.         soorten.add(s.getSoort());
  28.       }
  29.     }

  30.     private final String soort;

  31.     LaadprocesSoorten(String soort) {
  32.       this.soort = soort;
  33.     }

  34.     public String getSoort() {
  35.       return soort;
  36.     }

  37.     public static List<String> soorten() {
  38.       return Collections.unmodifiableList(soorten);
  39.     }
  40.   }
  41. }