diff --git a/external-system-connector/src/main/java/eu/profinit/education/flightlog/dao/ClubDatabaseDaoStub.java b/external-system-connector/src/main/java/eu/profinit/education/flightlog/dao/ClubDatabaseDaoStub.java index 7c7d18b..01fd512 100644 --- a/external-system-connector/src/main/java/eu/profinit/education/flightlog/dao/ClubDatabaseDaoStub.java +++ b/external-system-connector/src/main/java/eu/profinit/education/flightlog/dao/ClubDatabaseDaoStub.java @@ -9,15 +9,18 @@ import java.util.List; @Component @Profile("stub") public class ClubDatabaseDaoStub implements ClubDatabaseDao { + public static final String PILOT_ROLE = "PILOT"; + public static final String BACKOFFICE_ROLE = "BACKOFFICE"; + @Override public List getUsers() { return Arrays.asList( - new User(1L, "Kamila", "Spoustová", Arrays.asList("PILOT")), - new User(2L, "Naděžda", "Pavelková", Arrays.asList("PILOT")), - new User(3L, "Silvie", "Hronová", Arrays.asList("PILOT")), - new User(9L, "Miloš", "Korbel", Arrays.asList("PILOT", "BACKOFFICE")), - new User(10L, "Petr", "Hrubec", Arrays.asList("PILOT", "BACKOFFICE")), - new User(13L, "Michal", "Vyvlečka", Arrays.asList("BACKOFFICE")) + new User(1L, "Kamila", "Spoustová", Arrays.asList(PILOT_ROLE)), + new User(2L, "Naděžda", "Pavelková", Arrays.asList(PILOT_ROLE)), + new User(3L, "Silvie", "Hronová", Arrays.asList(PILOT_ROLE)), + new User(9L, "Miloš", "Korbel", Arrays.asList(PILOT_ROLE, BACKOFFICE_ROLE)), + new User(10L, "Petr", "Hrubec", Arrays.asList(PILOT_ROLE, BACKOFFICE_ROLE)), + new User(13L, "Michal", "Vyvlečka", Arrays.asList(BACKOFFICE_ROLE)) ); } }