Last change
on this file since bde8b13 was bde8b13, checked in by ppaunovski <paunovskipavel@…>, 6 months ago |
All 3 main use cases implemented.
- Starting a commute
- Writing a ticket
- Starting an instance of a Bus Line
|
-
Property mode
set to
100644
|
File size:
321 bytes
|
Rev | Line | |
---|
[b101b69] | 1 | package mk.ukim.finki.busngo.model.enums;
|
---|
| 2 |
|
---|
| 3 |
|
---|
| 4 | import org.springframework.security.core.GrantedAuthority;
|
---|
| 5 |
|
---|
| 6 | public enum Role implements GrantedAuthority {
|
---|
| 7 | ROLE_USER,
|
---|
[bde8b13] | 8 | ROLE_PASSENGER,
|
---|
| 9 | ROLE_DRIVER,
|
---|
| 10 | ROLE_CONDUCTOR,
|
---|
[b101b69] | 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.