Last change
on this file since b101b69 was b101b69, checked in by ppaunovski <paunovskipavel@…>, 6 months ago |
initial classes, no inheritance yet v2
|
-
Property mode
set to
100644
|
File size:
264 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,
|
---|
| 8 | ROLE_ADMIN;
|
---|
| 9 |
|
---|
| 10 |
|
---|
| 11 | @Override
|
---|
| 12 | public String getAuthority() {
|
---|
| 13 | return name();
|
---|
| 14 | }
|
---|
| 15 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.