diff --git a/src/main/java/de/kreth/invoice/data/ReportLicense.java b/src/main/java/de/kreth/invoice/data/ReportLicense.java new file mode 100644 index 0000000..a385e78 --- /dev/null +++ b/src/main/java/de/kreth/invoice/data/ReportLicense.java @@ -0,0 +1,24 @@ +package de.kreth.invoice.data; + +public enum ReportLicense { + + TRAINER("/reports/mtv_gross_buchholz_trainer.jrxml"), + ASSISTANT("/reports/mtv_gross_buchholz.jrxml"); + + private String ressource; + + private ReportLicense(String ressource) { + this.ressource = ressource; + } + + public String getRessource() { + return ressource; + } + + public String getLabel() { + if (TRAINER == this) { + return "Trainer"; + } + return "Übungsleiter"; + } +}