Add static fields for constant values
This commit is contained in:
parent
9ec19b94f1
commit
44286f5b94
1 changed files with 9 additions and 6 deletions
|
@ -9,15 +9,18 @@ import java.util.List;
|
||||||
@Component
|
@Component
|
||||||
@Profile("stub")
|
@Profile("stub")
|
||||||
public class ClubDatabaseDaoStub implements ClubDatabaseDao {
|
public class ClubDatabaseDaoStub implements ClubDatabaseDao {
|
||||||
|
public static final String PILOT_ROLE = "PILOT";
|
||||||
|
public static final String BACKOFFICE_ROLE = "BACKOFFICE";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<User> getUsers() {
|
public List<User> getUsers() {
|
||||||
return Arrays.asList(
|
return Arrays.asList(
|
||||||
new User(1L, "Kamila", "Spoustová", Arrays.asList("PILOT")),
|
new User(1L, "Kamila", "Spoustová", Arrays.asList(PILOT_ROLE)),
|
||||||
new User(2L, "Naděžda", "Pavelková", Arrays.asList("PILOT")),
|
new User(2L, "Naděžda", "Pavelková", Arrays.asList(PILOT_ROLE)),
|
||||||
new User(3L, "Silvie", "Hronová", Arrays.asList("PILOT")),
|
new User(3L, "Silvie", "Hronová", Arrays.asList(PILOT_ROLE)),
|
||||||
new User(9L, "Miloš", "Korbel", Arrays.asList("PILOT", "BACKOFFICE")),
|
new User(9L, "Miloš", "Korbel", Arrays.asList(PILOT_ROLE, BACKOFFICE_ROLE)),
|
||||||
new User(10L, "Petr", "Hrubec", Arrays.asList("PILOT", "BACKOFFICE")),
|
new User(10L, "Petr", "Hrubec", Arrays.asList(PILOT_ROLE, BACKOFFICE_ROLE)),
|
||||||
new User(13L, "Michal", "Vyvlečka", Arrays.asList("BACKOFFICE"))
|
new User(13L, "Michal", "Vyvlečka", Arrays.asList(BACKOFFICE_ROLE))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue