Skip to content

Commit c14fc44

Browse files
set new criticality values
1 parent 24e516b commit c14fc44

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

backend/src/main/java/org/eventplanner/importer/service/EventExcelImporter.java

+21-21
Original file line numberDiff line numberDiff line change
@@ -361,26 +361,26 @@ private static List<Location> getLocationsFromText(String text) {
361361

362362
private static List<Slot> generateDefaultEventSlots(String eventName) {
363363
var slots = new ArrayList<Slot>();
364-
slots.add(Slot.of(Pos.KAPITAEN).withRequired());
365-
slots.add(Slot.of(Pos.STM, Pos.KAPITAEN).withRequired());
366-
slots.add(Slot.of(Pos.STM, Pos.KAPITAEN).withRequired());
367-
slots.add(Slot.of(Pos.MASCHINIST).withName("1. Maschinist").withRequired());
368-
slots.add(Slot.of(Pos.MASCHINIST).withName("2. Maschinist").withRequired());
369-
370-
slots.add(Slot.of(Pos.KOCH).withRequired());
371-
slots.add(Slot.of(Pos.AUSBILDER, Pos.STM).withName("Ausbilder").withRequired());
372-
slots.add(Slot.of(Pos.MATROSE, Pos.LEICHTMATROSE).withRequired());
373-
slots.add(Slot.of(Pos.MATROSE, Pos.LEICHTMATROSE).withRequired());
374-
slots.add(Slot.of(Pos.MATROSE, Pos.LEICHTMATROSE).withRequired());
375-
376-
slots.add(Slot.of(Pos.MATROSE, Pos.LEICHTMATROSE).withRequired());
377-
slots.add(Slot.of(Pos.DECKSHAND, Pos.MOA, Pos.NOA, Pos.MATROSE, Pos.LEICHTMATROSE).withRequired());
378-
slots.add(Slot.of(Pos.DECKSHAND, Pos.MOA, Pos.NOA, Pos.MATROSE, Pos.LEICHTMATROSE).withRequired());
379-
slots.add(Slot.of(Pos.DECKSHAND, Pos.MOA, Pos.NOA, Pos.MATROSE, Pos.LEICHTMATROSE).withRequired());
380-
slots.add(Slot.of(Pos.DECKSHAND, Pos.MOA, Pos.NOA, Pos.MATROSE, Pos.LEICHTMATROSE).withRequired());
381-
382-
slots.add(Slot.of(Pos.DECKSHAND, Pos.MOA, Pos.NOA, Pos.MATROSE, Pos.LEICHTMATROSE).withRequired());
383-
slots.add(Slot.of(Pos.DECKSHAND, Pos.MOA, Pos.NOA, Pos.MATROSE, Pos.LEICHTMATROSE).withRequired());
364+
slots.add(Slot.of(Pos.KAPITAEN).withCriticality(2));
365+
slots.add(Slot.of(Pos.STM, Pos.KAPITAEN).withCriticality(2));
366+
slots.add(Slot.of(Pos.STM, Pos.KAPITAEN).withCriticality(1));
367+
slots.add(Slot.of(Pos.MASCHINIST).withName("1. Maschinist").withCriticality(2));
368+
slots.add(Slot.of(Pos.MASCHINIST).withName("2. Maschinist").withCriticality(2));
369+
370+
slots.add(Slot.of(Pos.KOCH).withCriticality(1));
371+
slots.add(Slot.of(Pos.AUSBILDER, Pos.STM).withName("Ausbilder").withCriticality(1));
372+
slots.add(Slot.of(Pos.MATROSE, Pos.LEICHTMATROSE).withCriticality(2));
373+
slots.add(Slot.of(Pos.MATROSE, Pos.LEICHTMATROSE).withCriticality(2));
374+
slots.add(Slot.of(Pos.MATROSE, Pos.LEICHTMATROSE).withCriticality(2));
375+
slots.add(Slot.of(Pos.MATROSE, Pos.LEICHTMATROSE).withCriticality(2));
376+
377+
slots.add(Slot.of(Pos.DECKSHAND, Pos.MOA, Pos.NOA, Pos.MATROSE, Pos.LEICHTMATROSE).withCriticality(1));
378+
slots.add(Slot.of(Pos.DECKSHAND, Pos.MOA, Pos.NOA, Pos.MATROSE, Pos.LEICHTMATROSE).withCriticality(1));
379+
slots.add(Slot.of(Pos.DECKSHAND, Pos.MOA, Pos.NOA, Pos.MATROSE, Pos.LEICHTMATROSE).withCriticality(1));
380+
slots.add(Slot.of(Pos.DECKSHAND, Pos.MOA, Pos.NOA, Pos.MATROSE, Pos.LEICHTMATROSE).withCriticality(1));
381+
382+
slots.add(Slot.of(Pos.DECKSHAND, Pos.MOA, Pos.NOA, Pos.MATROSE, Pos.LEICHTMATROSE).withCriticality(1));
383+
slots.add(Slot.of(Pos.DECKSHAND, Pos.MOA, Pos.NOA, Pos.MATROSE, Pos.LEICHTMATROSE).withCriticality(1));
384384
slots.add(Slot.of(Pos.DECKSHAND, Pos.MOA, Pos.NOA, Pos.MATROSE, Pos.LEICHTMATROSE));
385385
slots.add(Slot.of(Pos.DECKSHAND, Pos.MOA, Pos.NOA, Pos.MATROSE, Pos.LEICHTMATROSE));
386386
slots.add(Slot.of(Pos.DECKSHAND, Pos.MOA, Pos.NOA, Pos.MATROSE, Pos.LEICHTMATROSE));
@@ -395,7 +395,7 @@ private static List<Slot> generateDefaultEventSlots(String eventName) {
395395
slots.add(Slot.of(Pos.DECKSHAND, Pos.MOA, Pos.NOA, Pos.MATROSE, Pos.LEICHTMATROSE, Pos.BACKSCHAFT));
396396
slots.add(Slot.of(Pos.STM, Pos.KAPITAEN, Pos.MATROSE, Pos.LEICHTMATROSE, Pos.DECKSHAND, Pos.MOA, Pos.NOA)
397397
.withRequired());
398-
slots.add(Slot.of(Pos.KOCH, Pos.MATROSE, Pos.LEICHTMATROSE, Pos.DECKSHAND, Pos.MOA, Pos.NOA).withRequired());
398+
slots.add(Slot.of(Pos.KOCH, Pos.MATROSE, Pos.LEICHTMATROSE, Pos.DECKSHAND, Pos.MOA, Pos.NOA).withCriticality(1));
399399

400400
for (int i = 0; i < slots.size(); i++) {
401401
slots.set(i, slots.get(i).withOrder(i + 1));

0 commit comments

Comments
 (0)