Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. public static final Map<String, List<Integer>> MAPA_OVLASTI = Stream.of(
  2. new SimpleEntry<>("registracija", ADMIN_UNREG) ,
  3. new SimpleEntry<>("glasovanje", ADMIN_USER),
  4. new SimpleEntry<>("message", ALL),
  5. new SimpleEntry<>("statistika", ADMIN_USER),
  6. new SimpleEntry<>("upit_nadzorniku", USER),
  7. new SimpleEntry<>("uredi", USER),
  8. new SimpleEntry<>("manage_users", ADMIN),
  9. new SimpleEntry<>("dodaj_vijest", ADMIN),
  10. new SimpleEntry<>("postavi_nadzornika", ADMIN),
  11. new SimpleEntry<>("ukloni_nadzornika", ADMIN),
  12. new SimpleEntry<>("dodaj_glasovanje", ADMIN),
  13. new SimpleEntry<>("uredi_korisnika", ADMIN))
  14. .collect(Collectors.toMap(SimpleEntry::getKey, SimpleEntry::getValue));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement