source: src/main/java/mk/ukim/finki/busngo/model/enums/Role.java@ bde8b13

Last change on this file since bde8b13 was bde8b13, checked in by ppaunovski <paunovskipavel@…>, 6 months ago

All 3 main use cases implemented.

  1. Starting a commute
  2. Writing a ticket
  3. Starting an instance of a Bus Line
  • Property mode set to 100644
File size: 321 bytes
Line 
1package mk.ukim.finki.busngo.model.enums;
2
3
4import org.springframework.security.core.GrantedAuthority;
5
6public enum Role implements GrantedAuthority {
7 ROLE_USER,
8 ROLE_PASSENGER,
9 ROLE_DRIVER,
10 ROLE_CONDUCTOR,
11 ROLE_ADMIN;
12
13
14 @Override
15 public String getAuthority() {
16 return name();
17 }
18}
Note: See TracBrowser for help on using the repository browser.